diff --git a/core/lib/Drupal/Core/DrupalKernelInterface.php b/core/lib/Drupal/Core/DrupalKernelInterface.php index 4e0e15c..6771f09 100644 --- a/core/lib/Drupal/Core/DrupalKernelInterface.php +++ b/core/lib/Drupal/Core/DrupalKernelInterface.php @@ -7,6 +7,7 @@ namespace Drupal\Core; +use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpFoundation\Request; @@ -17,7 +18,7 @@ * This interface extends Symfony's KernelInterface and adds methods for * responding to modules being enabled or disabled during its lifetime. */ -interface DrupalKernelInterface extends HttpKernelInterface { +interface DrupalKernelInterface extends HttpKernelInterface, ContainerAwareInterface { /** * Boots the current kernel. @@ -59,18 +60,6 @@ public function getServiceProviders($origin); public function getContainer(); /** - * Sets the current container. - * - * Subsequently call static::boot() to bootstrap the container. - * - * @param \Symfony\Component\DependencyInjection\ContainerInterface $container - * The container to set. - * - * @return $this - */ - public function setContainer(ContainerInterface $container = NULL); - - /** * Set the current site path. * * @param $path