From 61fc5f767186cc486252046e9bf056c6d24b853f Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Fri, 29 Dec 2017 16:39:13 +0100 Subject: [PATCH] remove flex-specific suggestion on 3.4 --- .../Bundle/FrameworkBundle/Controller/ControllerTrait.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php b/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php index c97b837601..15cad0ed4d 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php +++ b/src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php @@ -366,14 +366,14 @@ trait ControllerTrait * * @return AccessDeniedException * - * @throws \LogicException If SecurityBundle is not available + * @throws \LogicException If the Security component is not available * * @final since version 3.4 */ protected function createAccessDeniedException($message = 'Access Denied.', \Exception $previous = null) { if (!class_exists(AccessDeniedException::class)) { - 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".'); + throw new \LogicException('You can not use the "createAccessDeniedException" method if the Security component is not available.'); } return new AccessDeniedException($message, $previous);