3 namespace Drupal\Core\Routing;
5 use Symfony\Component\HttpFoundation\Request;
6 use Symfony\Component\Routing\Matcher\RequestMatcherInterface;
7 use Symfony\Component\Routing\RouterInterface;
10 * Interface for a router class for Drupal with access check and upcasting.
12 interface AccessAwareRouterInterface extends RouterInterface, RequestMatcherInterface {
15 * Attribute name of the access result for the request..
17 const ACCESS_RESULT = '_access_result';
22 * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
23 * Thrown when access checking failed.
25 public function matchRequest(Request $request);
31 * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
32 * Thrown when $access_check is enabled and access checking failed.
34 public function match($pathinfo);