Skip to content

Commit d0a1b19

Browse files
committed
added support for expression in control access rules
1 parent e17127a commit d0a1b19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AccessMap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ class AccessMap implements AccessMapInterface
2828
* Constructor.
2929
*
3030
* @param RequestMatcherInterface $requestMatcher A RequestMatcherInterface instance
31-
* @param array $roles An array of roles needed to access the resource
31+
* @param array $attributes An array of attributes to pass to the access decision manager (like roles)
3232
* @param string|null $channel The channel to enforce (http, https, or null)
3333
*/
34-
public function add(RequestMatcherInterface $requestMatcher, array $roles = array(), $channel = null)
34+
public function add(RequestMatcherInterface $requestMatcher, array $attributes = array(), $channel = null)
3535
{
36-
$this->map[] = array($requestMatcher, $roles, $channel);
36+
$this->map[] = array($requestMatcher, $attributes, $channel);
3737
}
3838

3939
public function getPatterns(Request $request)

0 commit comments

Comments
 (0)