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) | ||
| 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)
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 |
Return Value
| 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