コード例 #1
0
 /**
  * @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;
 }
コード例 #2
0
 /**
  * @param SessionInterface   $session
  * @param ContainerInterface $container
  */
 public function __construct(SessionInterface $session, ContainerInterface $container)
 {
     $this->session = $session;
     parent::__construct($container);
 }