Drupal 8  8.0.2
AccessAwareRouter Class Reference
Inheritance diagram for AccessAwareRouter:

Public Member Functions

 __construct (ChainRouter $chain_router, AccessManagerInterface $access_manager, AccountInterface $account)
 
 __call ($name, $arguments)
 
 setContext (SymfonyRequestContext $context)
 
 getContext ()
 
 matchRequest (Request $request)
 
 getRouteCollection ()
 
 generate ($name, $parameters=array(), $referenceType=self::ABSOLUTE_PATH)
 
 match ($pathinfo)
 

Protected Member Functions

 checkAccess (Request $request)
 

Protected Attributes

 $chainRouter
 
 $accessManager
 
 $account
 

Additional Inherited Members

- Data Fields inherited from AccessAwareRouterInterface
const ACCESS_RESULT = '_access_result'
 

Detailed Description

A router class for Drupal with access check and upcasting.

Constructor & Destructor Documentation

__construct ( ChainRouter  $chain_router,
AccessManagerInterface  $access_manager,
AccountInterface  $account 
)

Constructs a router for Drupal with access check and upcasting.

Parameters
\Symfony\Cmf\Component\Routing\ChainRouter$chain_routerThe chain router doing the actual routing.
\Drupal\Core\Access\AccessManagerInterface$access_managerThe access manager.
\Drupal\Core\Session\AccountInterface$accountThe account to use in access checks.

References Drupal\accessManager().

Here is the call graph for this function:

Member Function Documentation

__call (   $name,
  $arguments 
)

{}

checkAccess ( Request  $request)
protected

Apply access check service to the route and parameters in the request.

Parameters
\Symfony\Component\HttpFoundation\Request$requestThe request to access check.

References AccessAwareRouterInterface\ACCESS_RESULT, and Drupal\accessManager().

Referenced by AccessAwareRouter\matchRequest().

Here is the call graph for this function:

Here is the caller graph for this function:

generate (   $name,
  $parameters = array(),
  $referenceType = self::ABSOLUTE_PATH 
)

{}

getContext ( )

{}

getRouteCollection ( )

{}

match (   $pathinfo)

{{}

Exceptions
\Symfony\Component\HttpKernel\Exception\AccessDeniedHttpExceptionThrown when $access_check is enabled and access checking failed.
}

Exceptions
\Symfony\Component\HttpKernel\Exception\AccessDeniedHttpExceptionThrown when access checking failed.

Implements AccessAwareRouterInterface.

References AccessAwareRouter\matchRequest().

Here is the call graph for this function:

matchRequest ( Request  $request)

{{}

Exceptions
\Symfony\Component\HttpKernel\Exception\AccessDeniedHttpExceptionThrown when access checking failed.
}

Exceptions
\Symfony\Component\HttpKernel\Exception\AccessDeniedHttpExceptionThrown when access checking failed.

Implements AccessAwareRouterInterface.

References AccessAwareRouter\checkAccess().

Referenced by AccessAwareRouter\match().

Here is the call graph for this function:

Here is the caller graph for this function:

setContext ( SymfonyRequestContext  $context)

{}


The documentation for this class was generated from the following file: