forked from lochmueller/fl_realurl_image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
18 lines (15 loc) · 956 Bytes
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.hook_tslib_fe.php']['connectToDB']['tx_flrealurlimage'] = 'FRUIT\\FlRealurlImage\\Hook\\TypoScriptFrontend->checkImageDecode';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['fl_realurl_image'] = array('frontend' => 'FRUIT\\FlRealurlImage\\Cache\\UriFrontend');
$xClass = array(
'TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer' => 'ContentObjectRenderer',
'TYPO3\\CMS\\Frontend\\ContentObject\\ImageResourceContentObject' => 'ImageResource',
'TYPO3\\CMS\\Fluid\\ViewHelpers\\ImageViewHelper' => 'ImageViewHelper',
'TYPO3\\CMS\\Fluid\\ViewHelpers\\Uri\\ImageViewHelper' => 'UriImageViewHelper',
);
foreach ($xClass as $source => $target) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][$source] = array('className' => 'FRUIT\\FlRealurlImage\\Xclass\\' . $target);
}