[HttpKernel] Keep 3.0 compat by not using ContainerAware
This commit is contained in:
parent
7beea17a02
commit
31a0669cf5
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\HttpKernel\Bundle;
|
namespace Symfony\Component\HttpKernel\Bundle;
|
||||||
|
|
||||||
use Symfony\Component\DependencyInjection\ContainerAware;
|
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
use Symfony\Component\DependencyInjection\Container;
|
use Symfony\Component\DependencyInjection\Container;
|
||||||
use Symfony\Component\Console\Application;
|
use Symfony\Component\Console\Application;
|
||||||
@ -24,8 +24,12 @@ use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
|
|||||||
*
|
*
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
* @author Fabien Potencier <fabien@symfony.com>
|
||||||
*/
|
*/
|
||||||
abstract class Bundle extends ContainerAware implements BundleInterface
|
abstract class Bundle implements BundleInterface
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var ContainerInterface
|
||||||
|
*/
|
||||||
|
protected $container;
|
||||||
protected $name;
|
protected $name;
|
||||||
protected $extension;
|
protected $extension;
|
||||||
protected $path;
|
protected $path;
|
||||||
@ -58,6 +62,16 @@ abstract class Bundle extends ContainerAware implements BundleInterface
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the container.
|
||||||
|
*
|
||||||
|
* @param ContainerInterface|null $container A ContainerInterface instance or null
|
||||||
|
*/
|
||||||
|
public function setContainer(ContainerInterface $container = null)
|
||||||
|
{
|
||||||
|
$this->container = $container;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the bundle's container extension.
|
* Returns the bundle's container extension.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user