forked from DrWh0286/fluid-styleguide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
38 lines (33 loc) · 1.05 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
34
35
36
37
38
<?php
/**
* Created by PhpStorm.
* User: sebastian
* Date: 27.10.18
* Time: 09:33
*/
/***************
* Living Styleguide: configure plugin
*/
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Pluswerk.FluidStyleguide',
'Styleguide',
[
'Styleguide' => 'index',
],
// non-cacheable actions
[
'Styleguide' => '',
]
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] =
\Pluswerk\Styleguide\Command\PatternlabCommand::class;
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluid_components']['namespaces']['Pluswerk\\FluidStyleguide\\Components'] =
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(
'fluid_styleguide',
'Resources/Private/Components'
);
// Make fc a global namespace
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['sg'])) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['sg'] = [];
}
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fluid']['namespaces']['sg'][] = 'Pluswerk\\FluidStyleguide\\Components';