Skip to content

Commit 08a4e88

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 dcb83e3 commit 08a4e88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firewall/AccessListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function handle(GetResponseEvent $event)
6969
if (!$this->accessDecisionManager->decide($token, $attributes, $request)) {
7070
$exception = new AccessDeniedException();
7171
$exception->setAttributes($attributes);
72-
$exception->setObject($request);
72+
$exception->setSubject($request);
7373

7474
throw $exception;
7575
}

0 commit comments

Comments
 (0)