Skip to content

Commit de6f1f9

Browse files
committed
AccessDeniedException: rename object to subject
With this change the name is inline with what we use in the base voter interface.
1 parent 15180a7 commit de6f1f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Controller/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ protected function denyAccessUnlessGranted($attributes, $object = null, $message
194194
if (!$this->isGranted($attributes, $object)) {
195195
$exception = $this->createAccessDeniedException($message);
196196
$exception->setAttributes($attributes);
197-
$exception->setObject($object);
197+
$exception->setSubject($object);
198198

199199
throw $exception;
200200
}

0 commit comments

Comments
 (0)