Sets the Container associated with this Controller.
public setContainer ( Symfony\Component\DependencyInjection\ContainerInterface $container = null ) | ||
$container | Symfony\Component\DependencyInjection\ContainerInterface | A ContainerInterface instance |
function __construct(Container $container, $parameters) { parent::setContainer($container); $this->mode = $parameters['paypal']['mode']; $this->logLevel = $parameters['paypal']['logLevel']; $this->generateUniqueId(); }
/** * @inheritdoc */ public function setContainer(ContainerInterface $container = null) { parent::setContainer($container); foreach ($container->getParameter('fizz_import.batch') as $batch) { $this->register($batch['name'], $batch['class']); } }
public function setContainer(ContainerInterface $container = null) { parent::setContainer($container); }
/** * {@inheritDoc} */ public function setContainer(ContainerInterface $container = null) { parent::setContainer($container); if (null === $this->tools) { $this->tools = $this->initTools(); } }
/** * 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'); }
public function setContainer(ContainerInterface $container = null) { parent::setContainer($container); $this->registry = $this->container->get('doctrine'); }
/** * {@inheritDoc} */ public function setContainer(ContainerInterface $container = null) { parent::setContainer($container); $this->calculateStrategy->setContainer($container); }