31ce1c4f499ee86c13b618fe88ca2496f67e03b7
[yaffs-website] / web / core / lib / Drupal / Core / Routing / AccessAwareRouterInterface.php
1 <?php
2
3 namespace Drupal\Core\Routing;
4
5 use Symfony\Component\HttpFoundation\Request;
6 use Symfony\Component\Routing\Matcher\RequestMatcherInterface;
7 use Symfony\Component\Routing\RouterInterface;
8
9 /**
10  * Interface for a router class for Drupal with access check and upcasting.
11  */
12 interface AccessAwareRouterInterface extends RouterInterface, RequestMatcherInterface {
13
14   /**
15    * Attribute name of the access result for the request..
16    */
17   const ACCESS_RESULT = '_access_result';
18
19   /**
20    * {@inheritdoc}
21    *
22    * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
23    *   Thrown when access checking failed.
24    */
25   public function matchRequest(Request $request);
26
27
28   /**
29    * {@inheritdoc}
30    *
31    * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
32    *   Thrown when $access_check is enabled and access checking failed.
33    */
34   public function match($pathinfo);
35
36 }