Commit 14d3ae9e authored by webchick's avatar webchick

Issue #2095125 follow-up by dawehner: Further refine access checking.

parent 9b8d3239
......@@ -8,11 +8,12 @@
namespace Drupal\Core\Access;
use Symfony\Component\Routing\Route;
use Drupal\Core\Routing\Access\AccessInterface as RoutingAccessInterface;
/**
* An access check service determines access rules for particular routes.
*/
interface AccessCheckInterface extends AccessInterface {
interface AccessCheckInterface extends RoutingAccessInterface {
/**
* Declares whether the access check applies to a specific route or not.
......
......@@ -7,8 +7,7 @@
namespace Drupal\Core\Access;
use Symfony\Component\Routing\Route;
use Symfony\Component\HttpFoundation\Request;
use Drupal\Core\Routing\Access\AccessInterface as RoutingAccessInterface;
/**
* An access check service determines access rules for particular routes.
......@@ -16,7 +15,7 @@
* This interface is specifically for routes that know exactly which requirement
* keys they should react to for a route.
*/
interface StaticAccessCheckInterface extends AccessInterface {
interface StaticAccessCheckInterface extends RoutingAccessInterface {
/**
* Declares the route requirement keys this access checker applies to.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment