From 764d77a4321703cbe00ba23970c0efcc53d979ef Mon Sep 17 00:00:00 2001 From: webchick Date: Fri, 4 Jan 2013 09:51:16 -0800 Subject: [PATCH] Issue #1872634 by fabpot: Fixed Added some missing synthetic services that were missing. --- core/lib/Drupal/Core/DrupalKernel.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php index ff728ad039d..ffa5ef4a393 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalKernel.php @@ -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); }