-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.php
56 lines (53 loc) · 3.06 KB
/
bootstrap.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
<?php
// Register composer autoloader
if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
throw new \RuntimeException(
'Could not find vendor/autoload.php, make sure you ran composer.'
);
}
/** @var Composer\Autoload\ClassLoader $autoloader */
$root = __DIR__ . '/vendor/fluidtypo3/';
$extensions = array(
'Flux' => 'flux',
'Vhs' => 'vhs',
'Builder' => 'builder',
'Fluidpages' => 'fluidpages',
'Fluidcontent' => 'fluidcontent',
'FluidcontentCore' => 'fluidcontent_core',
'Fluidbackend' => 'fluidbackend',
'Schemaker' => 'schemaker',
'Flll' => 'flll'
);
$autoloader = require __DIR__ . '/vendor/autoload.php';
foreach ($extensions as $namespace => $extensionKey) {
$autoloader->addPsr4('FluidTYPO3\\' . $namespace . '\\Tests\\Fixtures\\', $root . $extensionKey . '/Tests/Fixtures/');
$autoloader->addPsr4('FluidTYPO3\\' . $namespace . '\\Tests\\Unit\\', $root . $extensionKey . '/Tests/Unit/');
}
$autoloader->addPsr4('TYPO3\\CMS\\Core\\', __DIR__ . '/vendor/typo3/cms/typo3/sysext/core/Classes/');
$autoloader->addPsr4('TYPO3\\CMS\\Extbase\\', __DIR__ . '/vendor/typo3/cms/typo3/sysext/extbase/Classes/');
$autoloader->addPsr4('TYPO3\\CMS\\Fluid\\', __DIR__ . '/vendor/typo3/cms/typo3/sysext/fluid/Classes/');
$autoloader->addPsr4('TYPO3\\CMS\\Backend\\', __DIR__ . '/vendor/typo3/cms/typo3/sysext/backend/Classes/');
$autoloader->addPsr4('TYPO3\\CMS\\Recordlist\\', __DIR__ . '/vendor/typo3/cms/typo3/sysext/recordlist/Classes/');
$autoloader->addPsr4('TYPO3\\CMS\\Frontend\\', __DIR__ . '/vendor/typo3/cms/typo3/sysext/frontend/Classes/');
$autoloader->addPsr4('TYPO3\\CMS\\Lang\\', __DIR__ . '/vendor/typo3/cms/typo3/sysext/lang/Classes/');
\FluidTYPO3\Development\Bootstrap::initialize(array(
'cache_pages' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
'cache_rootline' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
'cache_hash' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
'extbase_reflection' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
'l10n' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
'fluid_template' => \FluidTYPO3\Development\Bootstrap::CACHE_PHP_NULL,
'cache_core' => \FluidTYPO3\Development\Bootstrap::CACHE_PHP_NULL,
'cache_runtime' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
'extbase_object' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
'extbase_datamapfactory_datamap' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
'extbase_typo3dbbackend_tablecolumns' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
'extbase_typo3dbbackend_queries' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
'fluidcontent' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
'l10n' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
'flux' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
'vhs_main' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
'vhs_markdown' => \FluidTYPO3\Development\Bootstrap::CACHE_NULL,
));
class_alias('FluidTYPO3\\Flux\\Tests\\Fixtures\\Classes\\ContentController', 'FluidTYPO3\\Flux\\Controller\\ContentController');
class_alias('FluidTYPO3\\Flux\\Tests\\Fixtures\\Classes\\ContentController', 'Tx_Flux_Controller_ContentController');