Skip to content

Commit ca78656

Browse files
author
Robin Chalas
committed
remove flex-specific suggestion on 3.4
1 parent 0678d8e commit ca78656

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Controller/ControllerTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,14 @@ protected function createNotFoundException($message = 'Not Found', \Exception $p
366366
*
367367
* @return AccessDeniedException
368368
*
369-
* @throws \LogicException If SecurityBundle is not available
369+
* @throws \LogicException If the Security component is not available
370370
*
371371
* @final since version 3.4
372372
*/
373373
protected function createAccessDeniedException($message = 'Access Denied.', \Exception $previous = null)
374374
{
375375
if (!class_exists(AccessDeniedException::class)) {
376-
throw new \LogicException('You can not use the "createAccessDeniedException" method if the SecurityBundle is not registered in your application. Try running "composer require security-core".');
376+
throw new \LogicException('You can not use the "createAccessDeniedException" method if the Security component is not available.');
377377
}
378378

379379
return new AccessDeniedException($message, $previous);

0 commit comments

Comments
 (0)