src/AdmBundle/AdmBundle.php line 8

Open in your IDE?
  1. <?php
  2. namespace AdmBundle;
  3. use Symfony\Component\DependencyInjection\ContainerInterface;
  4. use Symfony\Component\HttpKernel\Bundle\Bundle;
  5. class AdmBundle extends Bundle
  6. {
  7.     private static $containerInstance null;
  8.     /**
  9.      * @param ContainerInterface|null $container
  10.      */
  11.     public function setContainer(ContainerInterface $container null)
  12.     {
  13.         parent::setContainer($container);
  14.         self::$containerInstance $container;
  15.     }
  16.     /**
  17.      * @return ContainerInterface
  18.      */
  19.     public static function getContainer()
  20.     {
  21.         return self::$containerInstance;
  22.     }
  23. }