summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Schmitt <schmittjoh@gmail.com>2011-05-28 17:07:16 +0200
committerJohannes Schmitt <schmittjoh@gmail.com>2011-05-28 17:07:16 +0200
commitf99d1ab128ec40ee1907f721a3f03e61055c6eda (patch)
treeefdaedcc6d3a97396f0a70e3201f7f77e27ea3bd
parent303b16819cedd109a568a2f336490f8ed88ee9c1 (diff)
parente8f01b158d44c02ba7801477ff8830001cc33bef (diff)
downloadsymfony-security-f99d1ab128ec40ee1907f721a3f03e61055c6eda.zip
symfony-security-f99d1ab128ec40ee1907f721a3f03e61055c6eda.tar.gz
symfony-security-f99d1ab128ec40ee1907f721a3f03e61055c6eda.tar.bz2
Merge branch 'master' of git://github.com/symfony/symfony into security
-rw-r--r--Acl/Permission/MaskBuilder.php6
-rw-r--r--Http/Firewall/ContextListener.php1
2 files changed, 4 insertions, 3 deletions
diff --git a/Acl/Permission/MaskBuilder.php b/Acl/Permission/MaskBuilder.php
index 9965228..a0c84f8 100644
--- a/Acl/Permission/MaskBuilder.php
+++ b/Acl/Permission/MaskBuilder.php
@@ -92,7 +92,7 @@ class MaskBuilder
*/
public function add($mask)
{
- if (is_string($mask) && defined($name = 'self::MASK_'.strtoupper($mask))) {
+ if (is_string($mask) && defined($name = 'static::MASK_'.strtoupper($mask))) {
$mask = constant($name);
} else if (!is_int($mask)) {
throw new \InvalidArgumentException('$mask must be an integer.');
@@ -145,7 +145,7 @@ class MaskBuilder
*/
public function remove($mask)
{
- if (is_string($mask) && defined($name = 'self::MASK_'.strtoupper($mask))) {
+ if (is_string($mask) && defined($name = 'static::MASK_'.strtoupper($mask))) {
$mask = constant($name);
} else if (!is_int($mask)) {
throw new \InvalidArgumentException('$mask must be an integer.');
@@ -189,7 +189,7 @@ class MaskBuilder
}
if ($mask === $cMask) {
- if (!defined($cName = 'self::CODE_'.substr($name, 5))) {
+ if (!defined($cName = 'static::CODE_'.substr($name, 5))) {
throw new \RuntimeException('There was no code defined for this mask.');
}
diff --git a/Http/Firewall/ContextListener.php b/Http/Firewall/ContextListener.php
index 331a1e3..b018487 100644
--- a/Http/Firewall/ContextListener.php
+++ b/Http/Firewall/ContextListener.php
@@ -47,6 +47,7 @@ class ContextListener implements ListenerInterface
$this->context = $context;
$this->userProviders = $userProviders;
$this->contextKey = $contextKey;
+ $this->logger = $logger;
if (null !== $dispatcher) {
$dispatcher->addListener(Events::onCoreResponse, $this);