summaryrefslogtreecommitdiffstats
path: root/Core/Exception
diff options
context:
space:
mode:
authorChristian Flothmann <christian.flothmann@xabbuh.de>2016-09-19 13:01:06 +0200
committerChristian Flothmann <christian.flothmann@xabbuh.de>2016-09-19 13:01:06 +0200
commitb41a7d609cd26b03f6bf45b45521d7e2dbf00c46 (patch)
tree21cfc4567878a0c96f7066a863a66fba7d535555 /Core/Exception
parent3758bb97825f7275b473245633127bc377e246be (diff)
downloadsymfony-security-b41a7d609cd26b03f6bf45b45521d7e2dbf00c46.zip
symfony-security-b41a7d609cd26b03f6bf45b45521d7e2dbf00c46.tar.gz
symfony-security-b41a7d609cd26b03f6bf45b45521d7e2dbf00c46.tar.bz2
AccessDeniedException: rename object to subject
With this change the name is inline with what we use in the base voter interface.
Diffstat (limited to 'Core/Exception')
-rw-r--r--Core/Exception/AccessDeniedException.php12
1 files changed, 6 insertions, 6 deletions
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;
}
}