annotate core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children 129ea1e6d783
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 namespace Drupal\Core\Routing;
Chris@0 4
Chris@0 5 use Symfony\Component\HttpFoundation\Request;
Chris@0 6 use Symfony\Component\Routing\Matcher\RequestMatcherInterface;
Chris@0 7 use Symfony\Component\Routing\RouterInterface;
Chris@0 8
Chris@0 9 /**
Chris@0 10 * Interface for a router class for Drupal with access check and upcasting.
Chris@0 11 */
Chris@0 12 interface AccessAwareRouterInterface extends RouterInterface, RequestMatcherInterface {
Chris@0 13
Chris@0 14 /**
Chris@0 15 * Attribute name of the access result for the request..
Chris@0 16 */
Chris@0 17 const ACCESS_RESULT = '_access_result';
Chris@0 18
Chris@0 19 /**
Chris@0 20 * {@inheritdoc}
Chris@0 21 *
Chris@0 22 * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
Chris@0 23 * Thrown when access checking failed.
Chris@0 24 */
Chris@0 25 public function matchRequest(Request $request);
Chris@0 26
Chris@0 27
Chris@0 28 /**
Chris@0 29 * {@inheritdoc}
Chris@0 30 *
Chris@0 31 * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
Chris@0 32 * Thrown when $access_check is enabled and access checking failed.
Chris@0 33 */
Chris@0 34 public function match($pathinfo);
Chris@0 35
Chris@0 36 }