class PortRequestMatcher
Checks the HTTP port of a Request.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Symfony\Component\HttpFoundation\RequestMatcher\PortRequestMatcher implements \Symfony\Component\HttpFoundation\RequestMatcherInterface
Expanded class hierarchy of PortRequestMatcher
File
-
vendor/
symfony/ http-foundation/ RequestMatcher/ PortRequestMatcher.php, line 22
Namespace
Symfony\Component\HttpFoundation\RequestMatcherView source
class PortRequestMatcher implements RequestMatcherInterface {
public function __construct(int $port) {
}
public function matches(Request $request) : bool {
return $request->getPort() === $this->port;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
PortRequestMatcher::matches | public | function | Decides whether the rule(s) implemented by the strategy matches the supplied request. | Overrides RequestMatcherInterface::matches |
PortRequestMatcher::__construct | public | function |