AccessMap
in package
implements
AccessMapInterface
AccessMap allows configuration of different access control rules for specific parts of the website.
Tags
Table of Contents
Interfaces
- AccessMapInterface
- AccessMap allows configuration of different access control rules for specific parts of the website.
Properties
- $map : array<string|int, mixed>
Methods
- add() : mixed
- getPatterns() : array{0: array|null, 1: string|null}
- Returns security attributes and required channel for the supplied request.
Properties
$map
private
array<string|int, mixed>
$map
= []
Methods
add()
public
add(RequestMatcherInterface $requestMatcher[, array<string|int, mixed> $attributes = [] ][, string|null $channel = null ]) : mixed
Parameters
- $requestMatcher : RequestMatcherInterface
- $attributes : array<string|int, mixed> = []
-
An array of attributes to pass to the access decision manager (like roles)
- $channel : string|null = null
-
The channel to enforce (http, https, or null)
getPatterns()
Returns security attributes and required channel for the supplied request.
public
getPatterns(Request $request) : array{0: array|null, 1: string|null}
Parameters
- $request : Request
Return values
array{0: array|null, 1: string|null} —A tuple of security attributes and the required channel