remove flex-specific suggestion on 3.4

This commit is contained in:
Robin Chalas 2017-12-29 16:39:13 +01:00
parent 39f0438a07
commit 61fc5f7671

View File

@ -366,14 +366,14 @@ trait ControllerTrait
* *
* @return AccessDeniedException * @return AccessDeniedException
* *
* @throws \LogicException If SecurityBundle is not available * @throws \LogicException If the Security component is not available
* *
* @final since version 3.4 * @final since version 3.4
*/ */
protected function createAccessDeniedException($message = 'Access Denied.', \Exception $previous = null) protected function createAccessDeniedException($message = 'Access Denied.', \Exception $previous = null)
{ {
if (!class_exists(AccessDeniedException::class)) { 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); return new AccessDeniedException($message, $previous);