summaryrefslogtreecommitdiffstats
path: root/Http/AccessMap.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2013-09-03 14:42:46 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2013-09-19 12:59:11 +0200
commit842196b2dd50d94bc6ba982dc8cc10aa3d87964c (patch)
tree7f322cdc0a4b28e97c2c27229c8bfa878602f06b /Http/AccessMap.php
parente3b1e223c042122945644e34fdae102e843d50dd (diff)
downloadsymfony-security-842196b2dd50d94bc6ba982dc8cc10aa3d87964c.zip
symfony-security-842196b2dd50d94bc6ba982dc8cc10aa3d87964c.tar.gz
symfony-security-842196b2dd50d94bc6ba982dc8cc10aa3d87964c.tar.bz2
added support for expression in control access rules
Diffstat (limited to 'Http/AccessMap.php')
-rw-r--r--Http/AccessMap.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Http/AccessMap.php b/Http/AccessMap.php
index de78e15..bf1d540 100644
--- a/Http/AccessMap.php
+++ b/Http/AccessMap.php
@@ -28,12 +28,12 @@ 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);
}
public function getPatterns(Request $request)