AccessMap

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)

Constructor.

array getPatterns(Request $request)

Returns security attributes and required channel for the supplied request.

Details

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

Constructor.

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)

array getPatterns(Request $request)

Returns security attributes and required channel for the supplied request.

Parameters

Request $request The current request

Return Value

array A tuple of security attributes and the required channel
doc_Symfony
2016-10-28 06:04:39
Comments
Leave a Comment

Please login to continue.