class AccessMap implements AccessMapInterface
AccessMap allows configuration of different access control rules for specific parts of the website.
add(RequestMatcherInterface $requestMatcher, array $attributes = array(), string|null $channel = null) | ||
array | getPatterns(Request $request) Returns security attributes and required channel for the supplied request. |
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) |
Returns security attributes and required channel for the supplied request.
Request | $request |
array | A tuple of security attributes and the required channel |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Http/AccessMap.html