-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathext_localconf.php
33 lines (28 loc) · 1.01 KB
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
defined('TYPO3_MODE') or die();
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
use TYPO3\CMS\Extbase\Utility\ExtensionUtility;
use UniWue\UwA11yCheck\Controller\ContentElementsController;
call_user_func(function () {
ExtensionUtility::configurePlugin(
'UwA11yCheck',
'Pi1',
[
ContentElementsController::class => 'show',
],
// non-cacheable actions
[
ContentElementsController::class => 'show',
]
);
// Register configuration yaml file
if (empty($GLOBALS['TYPO3_CONF_VARS']['UwA11yCheck']['Configuration'])) {
$GLOBALS['TYPO3_CONF_VARS']['UwA11yCheck']['Configuration'] = 'EXT:uw_a11y_check/Configuration/A11y/Default.yaml';
}
if (!Environment::isComposerMode()) {
$composerAutoloadFile = ExtensionManagementUtility::extPath('uw_a11y_check')
. 'Resources/Private/Php/vendor/autoload.php';
require_once($composerAutoloadFile);
}
});