Symfony\Bundle\FrameworkBundle\ContainerAwareEventDispatcher::__construct PHP Метод

__construct() публичный Метод

Constructor.
public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container )
$container Symfony\Component\DependencyInjection\ContainerInterface A ContainerInterface instance
    public function __construct(ContainerInterface $container)
    {
        $this->container = $container;
    }

Usage Example

Пример #1
0
 /**
  * Constructor.
  *
  * @param ContainerInterface $container A ContainerInterface instance
  * @param LoggerInterface    $logger    A LoggerInterface instance
  */
 public function __construct(ContainerInterface $container, LoggerInterface $logger = null)
 {
     parent::__construct($container);
     $this->container = $container;
     $this->logger = $logger;
     $this->called = array();
 }