9 @trigger_error(
'The '.__NAMESPACE__.
'\Matching class is deprecated since version 1.2 and will be removed in 2.0. Use Http\Message\Authentication\RequestConditional instead.', E_USER_DEPRECATED);
23 private $authentication;
36 if (is_null($matcher)) {
37 $matcher =
function () {
42 $this->authentication = $authentication;
51 if ($this->matcher->matches($request)) {
52 return $this->authentication->authenticate($request);
72 return new static($authentication, $matcher);