Esempio n. 1
0
 protected function forgetInvalidSession(AbstractManager $sessionManager)
 {
     try {
         $sessionManager->start();
         return;
     } catch (\Exception $e) {
     }
     /**
      * Session validation failed: toast it and carry on.
      */
     // @codeCoverageIgnoreStart
     session_unset();
     // @codeCoverageIgnoreEnd
 }
 /**
  * Constructor
  *
  * @param  Config\ConfigInterface|null           $config
  * @param  Storage\StorageInterface|null         $storage
  * @param  SaveHandler\SaveHandlerInterface|null $saveHandler
  * @param  array                                 $validators
  * @param  array                                 $options
  * @throws Exception\RuntimeException
  */
 public function __construct(Config\ConfigInterface $config = null, Storage\StorageInterface $storage = null, SaveHandler\SaveHandlerInterface $saveHandler = null, array $validators = [], array $options = [])
 {
     $options = array_merge($this->defaultOptions, $options);
     if ($options['attach_default_validators']) {
         $validators = array_merge($this->defaultValidators, $validators);
     }
     parent::__construct($config, $storage, $saveHandler, $validators);
     register_shutdown_function([$this, 'writeClose']);
 }
 /**
  * Constructor
  *
  * @param  Config\ConfigInterface|null           $config
  * @param  Storage\StorageInterface|null         $storage
  * @param  SaveHandler\SaveHandlerInterface|null $saveHandler
  * @param  array                                 $validators
  * @throws Exception\RuntimeException
  */
 public function __construct(Config\ConfigInterface $config = null, Storage\StorageInterface $storage = null, SaveHandler\SaveHandlerInterface $saveHandler = null, array $validators = [])
 {
     parent::__construct($config, $storage, $saveHandler, $validators);
     register_shutdown_function([$this, 'writeClose']);
 }
 /**
  * Constructor
  *
  * @param  Config\ConfigInterface|null $config
  * @param  Storage\StorageInterface|null $storage
  * @param  SaveHandler\SaveHandlerInterface|null $saveHandler
  * @throws Exception\RuntimeException
  */
 public function __construct(Config\ConfigInterface $config = null, Storage\StorageInterface $storage = null, SaveHandler\SaveHandlerInterface $saveHandler = null)
 {
     parent::__construct($config, $storage, $saveHandler);
     register_shutdown_function(array($this, 'writeClose'));
 }