Symfony\Component\Security\Http\HttpUtils::checkRequestPath
Checks that a given path matches the Request.
Signature
public function checkRequestPath(Request
$request,
string
$path )
Parameters
$request
— Symfony\Component\HttpFoundation\Request- A Request instance
$path
— string- A path (an absolute path (/foo), an absolute URL (http://...), or a route name (foo))
Returns
- Boolean
- true if the path is the same as the one from the Request, false otherwise