public function setContainer(ContainerInterface $container = null) { parent::setContainer($container); $this->resourceResolver = new ResourceResolver($this->config); if (null !== $container) { $this->redirectHandler = new RedirectHandler($this->config, $container->get('router')); if (!$this->config->isApiRequest()) { $this->flashHelper = new FlashHelper($this->config, $container->get('translator'), $container->get('session')); } $this->domainManager = new DomainManager($container->get($this->config->getServiceName('manager')), $container->get('event_dispatcher'), $this->config, !$this->config->isApiRequest() ? $this->flashHelper : null); } }
public function setContainer(ContainerInterface $container = null) { parent::setContainer($container); // Initialize the expression language. // This may not be the best place to put this... AccardLanguage::setExpressionLanguage($container->get('dag.expression_language')); $this->resourceResolver = new ResourceResolver($this->config); if (null !== $container) { $this->redirectHandler = new RedirectHandler($this->config, $container->get('router')); $this->flashHelper = new FlashHelper($this->config, $container->get('translator'), $container->get('session')); $this->domainManager = new DomainManager($container->get($this->config->getServiceName('manager')), $container->get('event_dispatcher'), $this->flashHelper, $this->config); $authChecker = $this->get('security.authorization_checker'); if ($this->getUser() && $authChecker->isGranted('IS_AUTHENTICATED_FULLY')) { $this->actionLogger = new ActionLogger($this->config, $this->getUser(), $container->get('dag.manager.log')); } } }
public function setContainer(\Symfony\Component\DependencyInjection\ContainerInterface $container = null) { parent::setContainer($container); $this->initializeServices(); }
public function setContainer(ContainerInterface $container = null) { parent::setContainer($container); $this->em = $this->getDoctrine()->getManager(); }
public function setContainer(ContainerInterface $container = null) { parent::setContainer($container); $this->handler = new EntityHandler($this->container->get('doctrine.orm.entity_manager'), $this->container->get('event_dispatcher'), $this->get('request')); $this->handler->setParameters($this->parameters); }
public function setContainer(ContainerInterface $container = null) { parent::setContainer($container); $this->snapshotService = $container->get('snapshot_service'); }
/** * @param \Symfony\Component\DependencyInjection\ContainerInterface $container */ public function setContainer(ContainerInterface $container = null) { parent::setContainer($container); /** * Adiciona o innerEntity na lista de annotations ignoradas */ AnnotationReader::addGlobalIgnoredName('innerEntity'); //$this->get('doctrine.orm.entity_manager')->getConfiguration()->setQuoteStrategy(new OracleQuoteStrategy()); }
/** * Sets the Container associated with this Controller. * * @param ContainerInterface $container A ContainerInterface instance * * @api */ public function setContainer(ContainerInterface $container = null) { parent::setContainer($container); Hal::setSerializer($this->get('serializer')); Hal::setExpandOptions($this->getExpandOptionsFromMetadata()); $this->setWildcardParams(); }