/** * @param ContainerInterface|null $container */ public function __construct(ContainerInterface $container = null) { parent::__construct($container); $this->requestStack = $this->getContainerService('request_stack'); $this->em = $this->getContainerService('doctrine.orm.entity_manager'); $this->useEntity = true; $this->filesystemPath = null; }
/** * @param SessionInterface $session * @param ContainerInterface $container */ public function __construct(SessionInterface $session, ContainerInterface $container) { $this->session = $session; parent::__construct($container); }