<?php
namespace WebBundle;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class WebBundle extends Bundle
{
private static $containerInstance = null;
public function setContainer(ContainerInterface $container = null)
{
parent::setContainer($container);
self::$containerInstance = $container;
}
/**
* @return ContainerInterface
*/
public static function getContainer()
{
return self::$containerInstance;
}
}
//php app/console generate:doctrine:form WebBundle:ListCountry