You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownew \LogicException('You can not use the "renderView" method if the Templating Component or the Twig Bundle are not available.');
264
+
thrownew \LogicException('You can not use the "renderView" method if the Templating Component or the Twig Bundle are not available. Try running "composer require twig".');
thrownew \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available.');
288
+
thrownew \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require twig".');
thrownew \LogicException('You can not use the "stream" method if the Templating Component or the Twig Bundle are not available.');
326
+
thrownew \LogicException('You can not use the "stream" method if the Templating Component or the Twig Bundle are not available. Try running "composer require twig".');
if (!class_exists(AccessDeniedException::class)) {
376
-
thrownew \LogicException('You can not use the "createAccessDeniedException" method if the Security component is not available.');
376
+
thrownew \LogicException('You can not use the "createAccessDeniedException" method if the Security component is not available. Try running "composer require security".');
thrownew \LogicException('The DoctrineBundle is not registered in your application.');
425
+
thrownew \LogicException('The DoctrineBundle is not registered in your application. Try running "composer require doctrine".');
426
426
}
427
427
428
428
return$this->container->get('doctrine');
@@ -442,7 +442,7 @@ protected function getDoctrine()
442
442
protectedfunctiongetUser()
443
443
{
444
444
if (!$this->container->has('security.token_storage')) {
445
-
thrownew \LogicException('The SecurityBundle is not registered in your application.');
445
+
thrownew \LogicException('The SecurityBundle is not registered in your application. Try running "composer require security".');
446
446
}
447
447
448
448
if (null === $token = $this->container->get('security.token_storage')->getToken()) {
@@ -470,7 +470,7 @@ protected function getUser()
470
470
protectedfunctionisCsrfTokenValid($id, $token)
471
471
{
472
472
if (!$this->container->has('security.csrf.token_manager')) {
473
-
thrownew \LogicException('CSRF protection is not enabled in your application.');
473
+
thrownew \LogicException('CSRF protection is not enabled in your application. Enable it with the "csrf_protection" key in "config/packages/framework.yaml".');
0 commit comments