Symfony\Component\Security\Http\AccessMap::add
Constructor.
Signature
public function add(RequestMatcherInterface
$requestMatcher,
[array
$roles = null,
[string|null
$channel = null]] )
Parameters
$requestMatcher
— Symfony\Component\HttpFoundation\RequestMatcherInterface- A RequestMatcherInterface instance
$roles
— array- An array of roles needed to access the resource
$channel
— object- The channel to enforce (http, https, or null)