class AccessMap implements AccessMapInterface

AccessMap allows configuration of different access control rules for specific parts of the website.

Methods

add(RequestMatcherInterface $requestMatcher, array $attributes = array(), string|null $channel = null)

No description

array
getPatterns(Request $request)

Returns security attributes and required channel for the supplied request.

Details

at line 32
add(RequestMatcherInterface $requestMatcher, array $attributes = array(), string|null $channel = null)

Parameters

RequestMatcherInterface $requestMatcher A RequestMatcherInterface instance
array $attributes An array of attributes to pass to the access decision manager (like roles)
string|null $channel The channel to enforce (http, https, or null)

at line 40
array getPatterns(Request $request)

Returns security attributes and required channel for the supplied request.

Parameters

Request $request

Return Value

array A tuple of security attributes and the required channel