summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md2
-rw-r--r--Core/Exception/AccessDeniedException.php12
-rw-r--r--Http/Firewall/AccessListener.php2
3 files changed, 8 insertions, 8 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f92742a..6bebfba 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,7 +4,7 @@ CHANGELOG
3.2.0
-----
- * added `attributes` and `object` with getters/setters to `Symfony\Component\Security\Core\Exception\AccessDeniedException`
+ * added `$attributes` and `$subject` with getters/setters to `Symfony\Component\Security\Core\Exception\AccessDeniedException`
3.0.0
-----
diff --git a/Core/Exception/AccessDeniedException.php b/Core/Exception/AccessDeniedException.php
index d9a7019..a16044f 100644
--- a/Core/Exception/AccessDeniedException.php
+++ b/Core/Exception/AccessDeniedException.php
@@ -19,7 +19,7 @@ namespace Symfony\Component\Security\Core\Exception;
class AccessDeniedException extends \RuntimeException
{
private $attributes = array();
- private $object;
+ private $subject;
public function __construct($message = 'Access Denied.', \Exception $previous = null)
{
@@ -45,16 +45,16 @@ class AccessDeniedException extends \RuntimeException
/**
* @return mixed
*/
- public function getObject()
+ public function getSubject()
{
- return $this->object;
+ return $this->subject;
}
/**
- * @param mixed $object
+ * @param mixed $subject
*/
- public function setObject($object)
+ public function setSubject($subject)
{
- $this->object = $object;
+ $this->subject = $subject;
}
}
diff --git a/Http/Firewall/AccessListener.php b/Http/Firewall/AccessListener.php
index 5a23666..75798b9 100644
--- a/Http/Firewall/AccessListener.php
+++ b/Http/Firewall/AccessListener.php
@@ -69,7 +69,7 @@ class AccessListener implements ListenerInterface
if (!$this->accessDecisionManager->decide($token, $attributes, $request)) {
$exception = new AccessDeniedException();
$exception->setAttributes($attributes);
- $exception->setObject($request);
+ $exception->setSubject($request);
throw $exception;
}