$containerBuilder = $this->buildContainer($packageManager, $serviceProviderRegistry); $this->dumpContainer($containerBuilder, $cache, $cacheIdentifier); $cache->requireOnce($cacheIdentifier); } $container = new $containerClassName(); foreach ($this->defaultServices as $id => $service) { $container->set('_early.' . $id, $service); }
// @internal 'boot.state' => $bootState, ]); $container = $builder->createDependencyInjectionContainer($packageManager, $dependencyInjectionContainerCache, $failsafe); // Push the container to GeneralUtility as we want to make sure its // makeInstance() method creates classes using the container from now on. GeneralUtility::setContainer($container);
// Set up the application for the frontend call_user_func(static function () { $classLoader = require __DIR__.'/vendor/autoload.php'; \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(0, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_FE); \TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Frontend\Http\Application::class)->run(); });
call_user_func(static function () { $classLoader = require __DIR__.'/vendor/autoload.php'; \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(0, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_FE); \TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Frontend\Http\Application::class)->run(); });