<?php

if (!defined('TYPO3')) {
    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'
);

// 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
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][TYPO3\CMS\Form\Domain\Finishers\EmailFinisher::class] = [
    'className' => Opentalent\OtTemplating\XClass\Form\Finishers\EmailFinisher::class
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][GeorgRinger\News\Controller\NewsController::class] = [
    'className' => Opentalent\OtTemplating\XClass\News\NewsController::class
];
