<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}

// ext_localconf.php contient les directives permettant de configurer le frontend

\FluidTYPO3\Flux\Core::registerProviderExtensionKey(
    'OpenTalent.OtTemplating',
    'Page'
);
\FluidTYPO3\Flux\Core::registerProviderExtensionKey(
    'OpenTalent.OtTemplating',
    'Content'
);

$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['Controller/NewsController.php']['createDemandObjectFromSettings'] = ['Opentalent\OtTemplating\News\NewsFilter->createDemandObjectFromSettings'];

// Required to allow the use of multisite with the form extension
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][TYPO3\CMS\Form\Mvc\Configuration\ConfigurationManager::class] = [
    'className' => Opentalent\OtTemplating\XClass\Form\Configuration\ConfigurationManager::class
];
