forked from cundd/rest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext_localconf.php
More file actions
23 lines (19 loc) · 855 Bytes
/
ext_localconf.php
File metadata and controls
23 lines (19 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
if (!defined('TYPO3_MODE')) {
die ('Access denied.');
}
#\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'rest');
$TYPO3_CONF_VARS['FE']['eID_include']['rest'] = 'EXT:rest/index.php';
if (isset($_SERVER['REQUEST_URI']) && substr($_SERVER['REQUEST_URI'], 0, 6) === '/rest/') {
$_GET['eID'] = 'rest';
}
if (!is_array($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['cundd_rest_cache'])) {
$TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['cundd_rest_cache'] = array();
}
if (TYPO3_MODE === 'BE') {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'Cundd\\Rest\\Command\\RestCommandController';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['rest'] = array(
'EXT:' . $_EXTKEY . '/server_typo3.php',
'_CLI_rest',
);
}