File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ class AccessMap implements AccessMapInterface
28
28
* Constructor.
29
29
*
30
30
* @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)
32
32
* @param string|null $channel The channel to enforce (http, https, or null)
33
33
*/
34
- public function add (RequestMatcherInterface $ requestMatcher , array $ roles = array (), $ channel = null )
34
+ public function add (RequestMatcherInterface $ requestMatcher , array $ attributes = array (), $ channel = null )
35
35
{
36
- $ this ->map [] = array ($ requestMatcher , $ roles , $ channel );
36
+ $ this ->map [] = array ($ requestMatcher , $ attributes , $ channel );
37
37
}
38
38
39
39
public function getPatterns (Request $ request )
You can’t perform that action at this time.
0 commit comments