/**
  * {@inheritDoc}
  *
  * Adding the default subscribers to the event dispatcher.
  */
 public function __construct(HttpKernelInterface $kernel, $cacheDir = null)
 {
     parent::__construct($kernel, $cacheDir);
     foreach ($this->getDefaultSubscribers() as $subscriber) {
         $this->addSubscriber($subscriber);
     }
 }
示例#2
0
 public function __construct(HttpKernelInterface $kernel, $cacheDir = null)
 {
     parent::__construct($kernel, $cacheDir);
     $this->subscriber = new UserContextSubscriber(array('anonymous_hash' => static::ANONYMOUS_HASH, 'user_hash_accept_header' => static::USER_HASH_ACCEPT_HEADER, 'user_hash_header' => static::USER_HASH_HEADER, 'user_hash_uri' => static::USER_HASH_URI, 'user_hash_method' => static::USER_HASH_METHOD, 'session_name_prefix' => static::SESSION_NAME_PREFIX));
 }
示例#3
0
 public function __construct(HttpKernelInterface $kernel, array $envOptions, $cacheDir = null)
 {
     $this->envOptions = $envOptions;
     parent::__construct($kernel, $cacheDir);
 }
 public function __construct(HttpKernelInterface $kernel, $cacheDir = null)
 {
     $this->kernel = $kernel;
     $this->store = $this->createStore();
     parent::__construct($kernel, $cacheDir);
 }
示例#5
0
 public function __construct(HttpKernelInterface $kernel, $cacheDir = null)
 {
     $kernel->boot();
     parent::__construct($kernel, $cacheDir);
 }