-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext_localconf.php
29 lines (22 loc) · 1.09 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
<?php
defined('TYPO3_MODE') or ('Access denied.');
call_user_func(function($packageKey) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['onlineMediaHelpers']['youku']
= \BeechIt\YoukuOnlineMediaConnector\Helper\YoukuHelper::class;
// Custom mime type
$GLOBALS['TYPO3_CONF_VARS']['SYS']['FileInfo']['fileExtensionToMimeType']['youku'] = 'video/youku';
// Add as allowed media extension
$GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext'] .= ',youku';
// Renderers
$rendererRegistry = \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry::getInstance();
$rendererRegistry->registerRendererClass(
\BeechIt\YoukuOnlineMediaConnector\Renderer\YoukuRenderer::class
);
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerFileExtension('youku', 'file-youku');
$iconRegistry->registerIcon(
'file-youku',
\TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider::class,
['source' => 'EXT:youku_online_media_connector/ext_icon.png']
);
}, $_EXTKEY);