-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathext_localconf.php
More file actions
22 lines (17 loc) · 847 Bytes
/
ext_localconf.php
File metadata and controls
22 lines (17 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
defined('TYPO3_MODE') || die('Access denied.');
call_user_func(
function ($extKey) {
// Register file extension "youku"
$GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext'] .= ',youku';
// Register the online media helper
$GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['onlineMediaHelpers']['youku']
= \ChristianEssl\Youku\Resource\OnlineMedia\Helpers\YoukuHelper::class;
// Register the mime type
$GLOBALS['TYPO3_CONF_VARS']['SYS']['FileInfo']['fileExtensionToMimeType']['youku'] = 'video/youku';
// Register the renderer for the frontend
$rendererRegistry = \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry::getInstance();
$rendererRegistry->registerRendererClass(\ChristianEssl\Youku\Resource\Rendering\YoukuRenderer::class);
},
$_EXTKEY
);