File manager - Edit - /home/premiey/www/wp-content/plugins/ameliabooking/vendor/php-http/message/src/Authentication/RequestConditional.php
Back
<?php namespace AmeliaHttp\Message\Authentication; use AmeliaHttp\Message\Authentication; use AmeliaHttp\Message\RequestMatcher; use AmeliaPsr\Http\Message\RequestInterface; /** * Authenticate a PSR-7 Request if the request is matching the given request matcher. * * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> */ final class RequestConditional implements Authentication { /** * @var RequestMatcher */ private $requestMatcher; /** * @var Authentication */ private $authentication; /** * @param RequestMatcher $requestMatcher * @param Authentication $authentication */ public function __construct(RequestMatcher $requestMatcher, Authentication $authentication) { $this->requestMatcher = $requestMatcher; $this->authentication = $authentication; } /** * {@inheritdoc} */ public function authenticate(RequestInterface $request) { if ($this->requestMatcher->matches($request)) { return $this->authentication->authenticate($request); } return $request; } }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings