src/WebBundle/WebBundle.php line 8

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