var/cache/dev/twig/ec/ecf28c6004b4273d38c0e54cd844ace4.php line 49

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* layout/partials/flash_messages.html.twig */
  16. class __TwigTemplate_d8063ec2b2303c56c80d849dd81b6047 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = []): iterable
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layout/partials/flash_messages.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layout/partials/flash_messages.html.twig"));
  38.         // line 1
  39.         $context['_parent'] = $context;
  40.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1$this->source); })()), "flashes", [], "any"falsefalsefalse1));
  41.         foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
  42.             // line 2
  43.             yield "                ";
  44.             $context['_parent'] = $context;
  45.             $context['_seq'] = CoreExtension::ensureTraversable($context["messages"]);
  46.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  47.                 // line 3
  48.                 yield "                    <div  style=\"color: #30101A; \" class=\"m-1  alert alert-";
  49.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["type"], "html"nulltrue);
  50.                 yield " rounded text-center\" role= \"alert\" >
  51.                         ";
  52.                 // line 4
  53.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["message"], "html"nulltrue);
  54.                 yield "
  55.                     </div>
  56.                 ";
  57.             }
  58.             $_parent $context['_parent'];
  59.             unset($context['_seq'], $context['_key'], $context['message'], $context['_parent']);
  60.             $context array_intersect_key($context$_parent) + $_parent;
  61.         }
  62.         $_parent $context['_parent'];
  63.         unset($context['_seq'], $context['type'], $context['messages'], $context['_parent']);
  64.         $context array_intersect_key($context$_parent) + $_parent;
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.         yield from [];
  70.     }
  71.     /**
  72.      * @codeCoverageIgnore
  73.      */
  74.     public function getTemplateName(): string
  75.     {
  76.         return "layout/partials/flash_messages.html.twig";
  77.     }
  78.     /**
  79.      * @codeCoverageIgnore
  80.      */
  81.     public function isTraitable(): bool
  82.     {
  83.         return false;
  84.     }
  85.     /**
  86.      * @codeCoverageIgnore
  87.      */
  88.     public function getDebugInfo(): array
  89.     {
  90.         return array (  62 => 4,  57 => 3,  52 => 2,  48 => 1,);
  91.     }
  92.     public function getSourceContext(): Source
  93.     {
  94.         return new Source("{% for type, messages in app.flashes %}
  95.                 {% for message in messages %}
  96.                     <div  style=\"color: #30101A; \" class=\"m-1  alert alert-{{type}} rounded text-center\" role= \"alert\" >
  97.                         {{ message }}
  98.                     </div>
  99.                 {% endfor %}
  100. {% endfor %}
  101. ""layout/partials/flash_messages.html.twig""/var/www/prod/current/templates/layout/partials/flash_messages.html.twig");
  102.     }
  103. }