Mercurial > hg > isophonics-drupal-site
annotate core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
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 } |