mediatekformation

AccessMap
in package
implements AccessMapInterface

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

Tags
author

Fabien Potencier fabien@symfony.com

Interfaces, Classes, Traits and Enums

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

Table of Contents

$map  : mixed
add()  : mixed
getPatterns()  : array<string|int, mixed>
Returns security attributes and required channel for the supplied request.

Properties

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)

Return values
mixed

getPatterns()

Returns security attributes and required channel for the supplied request.

public getPatterns(Request $request) : array<string|int, mixed>
Parameters
$request : Request
Return values
array<string|int, mixed>

A tuple of security attributes and the required channel

Search results