-
Notifications
You must be signed in to change notification settings - Fork 2
/
ext_autoload.php
69 lines (64 loc) · 2.57 KB
/
ext_autoload.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/*
* Register necessary class names with autoloader
*/
$extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('content_rendering_core');
$extensionNamespaces = array(
'core' => 'TYPO3\CMS\Core',
'fluid' => 'TYPO3\CMS\Fluid',
'fluid_styled_content' => 'TYPO3\CMS\FluidStyledContent',
'frontend' => 'TYPO3\CMS\Frontend'
);
$classes = array(
'core' => array(
'Resource\OnlineMedia\Helpers\AbstractOEmbedHelper',
'Resource\OnlineMedia\Helpers\AbstractOnlineMediaHelper',
'Resource\OnlineMedia\Helpers\OnlineMediaHelperInterface',
'Resource\OnlineMedia\Helpers\OnlineMediaHelperRegistry',
'Resource\OnlineMedia\Helpers\VimeoHelper',
'Resource\OnlineMedia\Helpers\YouTubeHelper',
'Resource\OnlineMedia\Metadata\Extractor',
'Resource\OnlineMedia\Processing\PreviewProcessing',
'Resource\Rendering\AudioTagRenderer',
'Resource\Rendering\FileRendererInterface',
'Resource\Rendering\RendererRegistry',
'Resource\Rendering\VideoTagRenderer',
'Resource\Rendering\VimeoRenderer',
'Resource\Rendering\YouTubeRenderer',
'Utility\CsvUtility'
),
'fluid' => array(
'ViewHelpers\Link\TypolinkViewHelper',
'ViewHelpers\MediaViewHelper'
),
'fluid_styled_content' => array(
'Hooks\TextmediaPreviewRenderer',
'ViewHelpers\Link\ClickEnlargeViewHelper',
'ViewHelpers\Menu\CategoriesViewHelper',
'ViewHelpers\Menu\DirectoryViewHelper',
'ViewHelpers\Menu\KeywordsViewHelper',
'ViewHelpers\Menu\ListViewHelper',
'ViewHelpers\Menu\MenuViewHelperTrait',
'ViewHelpers\Menu\SectionViewHelper',
'ViewHelpers\Menu\UpdatedViewHelper'
),
'frontend' => array(
'ContentObject\Exception\ContentRenderingException',
'ContentObject\ContentDataProcessor',
'ContentObject\DataProcessorInterface',
'DataProcessing\CommaSeparatedValueProcessor',
'DataProcessing\DatabaseQueryProcessor',
'DataProcessing\FilesProcessor',
'DataProcessing\GalleryProcessor',
'DataProcessing\SplitProcessor',
'Resource\FileCollector',
'Service\TypoLinkCodecService'
)
);
$autoloadArray = array();
foreach ($classes as $extensionName => $extensionClasses) {
foreach ($extensionClasses as $extensionClass) {
$autoloadArray[$extensionNamespaces[$extensionName] . '\\' . $extensionClass] = $extensionPath . 'Classes/' . $extensionName . '/' . str_replace('\\', '/', $extensionClass) . '.php';
}
}
return $autoloadArray;