Skip to content

Commit c37b4b6

Browse files
committed
unify default AccessDeniedExeption message
1 parent f26bc23 commit c37b4b6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Controller/Controller.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ protected function addFlash($type, $message)
119119
* @param mixed $attributes The attributes
120120
* @param mixed $object The object
121121
*
122-
* @throws \LogicException
123122
* @return bool
123+
*
124+
* @throws \LogicException
124125
*/
125126
protected function isGranted($attributes, $object = null)
126127
{
@@ -230,7 +231,7 @@ public function createNotFoundException($message = 'Not Found', \Exception $prev
230231
*
231232
* @return AccessDeniedException
232233
*/
233-
public function createAccessDeniedException($message = 'Access Denied', \Exception $previous = null)
234+
public function createAccessDeniedException($message = 'Access Denied.', \Exception $previous = null)
234235
{
235236
return new AccessDeniedException($message, $previous);
236237
}
@@ -344,7 +345,7 @@ public function get($id)
344345
}
345346

346347
/**
347-
* Checks the validity of a CSRF token
348+
* Checks the validity of a CSRF token.
348349
*
349350
* @param string $id The id used when generating the token
350351
* @param string $token The actual token sent with the request that should be validated

0 commit comments

Comments
 (0)