summaryrefslogtreecommitdiffstats
path: root/Http/AccessMap.php
diff options
context:
space:
mode:
Diffstat (limited to 'Http/AccessMap.php')
-rw-r--r--Http/AccessMap.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/Http/AccessMap.php b/Http/AccessMap.php
index de78e15..dc2e66a 100644
--- a/Http/AccessMap.php
+++ b/Http/AccessMap.php
@@ -28,14 +28,17 @@ class AccessMap implements AccessMapInterface
* Constructor.
*
* @param RequestMatcherInterface $requestMatcher A RequestMatcherInterface instance
- * @param array $roles An array of roles needed to access the resource
+ * @param array $attributes An array of attributes to pass to the access decision manager (like roles)
* @param string|null $channel The channel to enforce (http, https, or null)
*/
- public function add(RequestMatcherInterface $requestMatcher, array $roles = array(), $channel = null)
+ public function add(RequestMatcherInterface $requestMatcher, array $attributes = array(), $channel = null)
{
- $this->map[] = array($requestMatcher, $roles, $channel);
+ $this->map[] = array($requestMatcher, $attributes, $channel);
}
+ /**
+ * {@inheritDoc}
+ */
public function getPatterns(Request $request)
{
foreach ($this->map as $elements) {