Submit
Path:
~
/
/
proc
/
self
/
root
/
opt
/
psa
/
admin
/
plib
/
modules
/
wp-toolkit
/
vendor
/
php-http
/
message
/
src
/
RequestMatcher
/
File Content:
CallbackRequestMatcher.php
<?php namespace WPToolkitDependenciesIsolationPrefix\Http\Message\RequestMatcher; use WPToolkitDependenciesIsolationPrefix\Http\Message\RequestMatcher; use Psr\Http\Message\RequestInterface; /** * Match a request with a callback. * * @author Márk Sági-Kazár <mark.sagikazar@gmail.com> */ final class CallbackRequestMatcher implements RequestMatcher { /** * @var callable */ private $callback; public function __construct(callable $callback) { $this->callback = $callback; } public function matches(RequestInterface $request) { return (bool) \call_user_func($this->callback, $request); } }
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
CallbackRequestMatcher.php
656 bytes
0644
RegexRequestMatcher.php
1024 bytes
0644
RequestMatcher.php
2160 bytes
0644
N4ST4R_ID | Naxtarrr