class UserCanMiddleware (View source)

Redirect users who do not have a capability to a specific URL.

Methods

__construct(ResponseService $response_service)

Constructor.

handle(RequestInterface $request, Closure $next, $capability = '', $object_id = '0', $url = '')

{@inheritDoc}

Details

__construct(ResponseService $response_service)

Constructor.

Parameters

ResponseService $response_service

handle(RequestInterface $request, Closure $next, $capability = '', $object_id = '0', $url = '')

{@inheritDoc}

Parameters

RequestInterface $request
Closure $next
$capability
$object_id
$url