Пример #1
0
 /**
  * @param FactoryInterface $factory
  * @param int              $lifetime
  * @param string           $sourceClass
  * @param TokenHashes      $hashes
  * @param string           $header Header to read token hash from.
  */
 public function __construct(FactoryInterface $factory, $lifetime, $sourceClass, TokenHashes $hashes, $header)
 {
     parent::__construct($factory, $lifetime, $sourceClass, $hashes);
     $this->header = $header;
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function updateToken(Request $request, Response $response, TokenInterface $token)
 {
     $response = parent::updateToken($request, $response, $token);
     return $this->mountToken($request, $response, $token);
 }