Issue #1872634 by fabpot: Fixed Added some missing synthetic services that were missing.

8.0.x
webchick 2013-01-04 09:51:16 -08:00
parent 0e90e3e0f3
commit 764d77a432
1 changed files with 3 additions and 1 deletions

View File

@ -365,8 +365,10 @@ class DrupalKernel extends Kernel implements DrupalKernelInterface {
$container = $this->getContainerBuilder();
$container->setParameter('container.bundles', $this->bundleClasses);
$container->setParameter('container.modules', $this->getModuleFileNames());
// Register the class loader as a synthetic service.
// Register synthetic services.
$container->register('class_loader', 'Symfony\Component\ClassLoader\UniversalClassLoader')->setSynthetic(TRUE);
$container->register('kernel', 'Symfony\Component\HttpKernel\KernelInterface')->setSynthetic(TRUE);
$container->register('service_container', 'Symfony\Component\DependencyInjection\ContainerInterface')->setSynthetic(TRUE);
foreach ($this->bundles as $bundle) {
$bundle->build($container);
}