comparison core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 129ea1e6d783
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
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 }