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

Sets the Container associated with this Controller.
public setContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container = null )
$container Symfony\Component\DependencyInjection\ContainerInterface A ContainerInterface instance
Пример #1
0
 function __construct(Container $container, $parameters)
 {
     parent::setContainer($container);
     $this->mode = $parameters['paypal']['mode'];
     $this->logLevel = $parameters['paypal']['logLevel'];
     $this->generateUniqueId();
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function setContainer(ContainerInterface $container = null)
 {
     parent::setContainer($container);
     foreach ($container->getParameter('fizz_import.batch') as $batch) {
         $this->register($batch['name'], $batch['class']);
     }
 }
Пример #3
0
 public function setContainer(ContainerInterface $container = null)
 {
     parent::setContainer($container);
 }
Пример #4
0
 /**
  * {@inheritDoc}
  */
 public function setContainer(ContainerInterface $container = null)
 {
     parent::setContainer($container);
     if (null === $this->tools) {
         $this->tools = $this->initTools();
     }
 }
Пример #5
0
 /**
  * Sets the Container associated with this Controller.
  *
  * @param ContainerInterface $container A ContainerInterface instance
  *
  * @api
  */
 public function setContainer(ContainerInterface $container = null)
 {
     parent::setContainer($container);
     // Load settings.
     $this->settings = $this->container->getParameter('magento');
 }
Пример #6
0
 public function setContainer(ContainerInterface $container = null)
 {
     parent::setContainer($container);
     $this->registry = $this->container->get('doctrine');
 }
Пример #7
0
 /**
  * {@inheritDoc}
  */
 public function setContainer(ContainerInterface $container = null)
 {
     parent::setContainer($container);
     $this->calculateStrategy->setContainer($container);
 }