var/cache/dev/twig/b0/b042632cd66f96201d4fca914e3e82db.php line 46

  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. /* security/login.html.twig */
  16. class __TwigTemplate_1afc45447fcc6157fcb1ae39ef0ac77d 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->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'css' => [$this'block_css'],
  30.             'js' => [$this'block_js'],
  31.             'body' => [$this'block_body'],
  32.         ];
  33.     }
  34.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  35.     {
  36.         // line 1
  37.         return "base.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = []): iterable
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login.html.twig"));
  46.         $this->parent $this->load("base.html.twig"1);
  47.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 3
  54.     /**
  55.      * @return iterable<null|scalar|\Stringable>
  56.      */
  57.     public function block_title(array $context, array $blocks = []): iterable
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  64.         yield "Log in!";
  65.         
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67.         
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  69.         yield from [];
  70.     }
  71.     // line 5
  72.     /**
  73.      * @return iterable<null|scalar|\Stringable>
  74.      */
  75.     public function block_css(array $context, array $blocks = []): iterable
  76.     {
  77.         $macros $this->macros;
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css"));
  80.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""css"));
  82.         // line 6
  83.         yield "\t<link href=\"";
  84.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("template/argon/css/nucleo-svg.css"), "html"nulltrue);
  85.         yield "\" rel=\"stylesheet\"/>
  86. \t<style>
  87.     .example-wrapper { margin: 1em auto; width: 100%; font: 18px/1.5 sans-serif; }
  88.     .example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
  89. \t</style>
  90. ";
  91.         
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  93.         
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  95.         yield from [];
  96.     }
  97.     // line 13
  98.     /**
  99.      * @return iterable<null|scalar|\Stringable>
  100.      */
  101.     public function block_js(array $context, array $blocks = []): iterable
  102.     {
  103.         $macros $this->macros;
  104.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  105.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""js"));
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  107.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""js"));
  108.         // line 14
  109.         yield "\t<script type=\"text/javascript\" src=\"";
  110.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("app.js"), "html"nulltrue);
  111.         yield "\"></script>
  112. ";
  113.         
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  115.         
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  117.         yield from [];
  118.     }
  119.     // line 18
  120.     /**
  121.      * @return iterable<null|scalar|\Stringable>
  122.      */
  123.     public function block_body(array $context, array $blocks = []): iterable
  124.     {
  125.         $macros $this->macros;
  126.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  127.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  128.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  129.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  130.         // line 19
  131.         yield "<div class=\"container\">
  132. \t<div class=\"row align-items-center\">
  133. \t\t<div class=\"col-3\"></div>
  134. \t\t<div class=\"col-6\">
  135. \t\t\t<div class=\"card m-4 \" style=\"width: 36rem;\">
  136. \t\t\t\t<div class=\"card-body text-center\">
  137. \t\t\t\t\t<form method=\"post\">
  138. \t\t\t\t\t\t";
  139.         // line 26
  140.         if ((($tmp = (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'26$this->source); })())) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  141.             // line 27
  142.             yield "\t\t\t\t\t\t\t<div class=\"alert alert-danger\">";
  143.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'27$this->source); })()), "messageKey", [], "any"falsefalsefalse27), CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'27$this->source); })()), "messageData", [], "any"falsefalsefalse27), "security"), "html"nulltrue);
  144.             yield "</div>
  145. \t\t\t\t\t\t";
  146.         }
  147.         // line 29
  148.         yield "
  149. \t\t\t\t\t\t";
  150.         // line 30
  151.         if ((($tmp 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.'30$this->source); })()), "user", [], "any"falsefalsefalse30)) && $tmp instanceof Markup ? (string) $tmp $tmp)) {
  152.             // line 31
  153.             yield "\t\t\t\t\t\t\t<div class=\"mb-3\">
  154. \t\t\t\t\t\t\t\tVous êtes connecté(e) comme ";
  155.             // line 32
  156.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'32$this->source); })()), "user", [], "any"falsefalsefalse32), "userIdentifier", [], "any"falsefalsefalse32), "html"nulltrue);
  157.             yield ",<br>
  158. \t\t\t\t\t\t\t\t<a href=\"";
  159.             // line 33
  160.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  161.             yield "\">Me déconnecter</a>
  162. \t\t\t\t\t\t\t</div>
  163. \t\t\t\t\t\t";
  164.         }
  165.         // line 36
  166.         yield "
  167.                         <h4>Middleware</h4>
  168. \t\t\t\t\t\t<h2 class=\"h6 mb-3 font-weight-normal\">Me connecter</h2>
  169. \t\t\t\t\t\t<label for=\"inputEmail\">Email</label>
  170. \t\t\t\t\t\t<input type=\"email\" value=\"";
  171.         // line 40
  172.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["last_username"]) || array_key_exists("last_username"$context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.'40$this->source); })()), "html"nulltrue);
  173.         yield "\" name=\"email\" id=\"inputEmail\" class=\"form-control\" autocomplete=\"email\" required autofocus>
  174. \t\t\t\t\t\t<br>
  175. \t\t\t\t\t\t<label for=\"inputPassword\">Mot de passe</label>
  176. \t\t\t\t\t\t<input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required>
  177. \t\t\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"";
  178.         // line 44
  179.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Bridge\Twig\Extension\CsrfRuntime')->getCsrfToken("authenticate"), "html"nulltrue);
  180.         yield "\">
  181. \t\t\t\t\t\t<br>
  182. \t\t\t\t\t\t<div class=\"checkbox mb-3 d-none\">
  183. \t\t\t\t\t\t\t<label>
  184. \t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"_remember_me\">
  185. \t\t\t\t\t\t\t\tSe souvenir de moi
  186. \t\t\t\t\t\t\t</label>
  187. \t\t\t\t\t\t</div>
  188. \t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary mt-3\">
  189. \t\t\t\t\t\t\tConnexion
  190. \t\t\t\t\t\t</button>
  191. \t\t\t\t\t</form>
  192. \t\t\t\t</div>
  193. \t\t\t</div>
  194. \t\t</div>
  195. \t</div>
  196. </div>
  197. ";
  198.         
  199.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  200.         
  201.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  202.         yield from [];
  203.     }
  204.     /**
  205.      * @codeCoverageIgnore
  206.      */
  207.     public function getTemplateName(): string
  208.     {
  209.         return "security/login.html.twig";
  210.     }
  211.     /**
  212.      * @codeCoverageIgnore
  213.      */
  214.     public function isTraitable(): bool
  215.     {
  216.         return false;
  217.     }
  218.     /**
  219.      * @codeCoverageIgnore
  220.      */
  221.     public function getDebugInfo(): array
  222.     {
  223.         return array (  208 => 44,  201 => 40,  195 => 36,  189 => 33,  185 => 32,  182 => 31,  180 => 30,  177 => 29,  171 => 27,  169 => 26,  160 => 19,  147 => 18,  133 => 14,  120 => 13,  102 => 6,  89 => 5,  66 => 3,  43 => 1,);
  224.     }
  225.     public function getSourceContext(): Source
  226.     {
  227.         return new Source("{% extends 'base.html.twig' %}
  228. {% block title %}Log in!{% endblock %}
  229. {% block css %}
  230. \t<link href=\"{{ asset('template/argon/css/nucleo-svg.css') }}\" rel=\"stylesheet\"/>
  231. \t<style>
  232.     .example-wrapper { margin: 1em auto; width: 100%; font: 18px/1.5 sans-serif; }
  233.     .example-wrapper code { background: #F5F5F5; padding: 2px 6px; }
  234. \t</style>
  235. {% endblock %}
  236. {% block js %}
  237. \t<script type=\"text/javascript\" src=\"{{ asset('app.js') }}\"></script>
  238. {% endblock %}
  239. {% block body %}
  240. <div class=\"container\">
  241. \t<div class=\"row align-items-center\">
  242. \t\t<div class=\"col-3\"></div>
  243. \t\t<div class=\"col-6\">
  244. \t\t\t<div class=\"card m-4 \" style=\"width: 36rem;\">
  245. \t\t\t\t<div class=\"card-body text-center\">
  246. \t\t\t\t\t<form method=\"post\">
  247. \t\t\t\t\t\t{% if error %}
  248. \t\t\t\t\t\t\t<div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  249. \t\t\t\t\t\t{% endif %}
  250. \t\t\t\t\t\t{% if app.user %}
  251. \t\t\t\t\t\t\t<div class=\"mb-3\">
  252. \t\t\t\t\t\t\t\tVous êtes connecté(e) comme {{ app.user.userIdentifier }},<br>
  253. \t\t\t\t\t\t\t\t<a href=\"{{ path ('app_logout') }}\">Me déconnecter</a>
  254. \t\t\t\t\t\t\t</div>
  255. \t\t\t\t\t\t{% endif %}
  256.                         <h4>Middleware</h4>
  257. \t\t\t\t\t\t<h2 class=\"h6 mb-3 font-weight-normal\">Me connecter</h2>
  258. \t\t\t\t\t\t<label for=\"inputEmail\">Email</label>
  259. \t\t\t\t\t\t<input type=\"email\" value=\"{{ last_username }}\" name=\"email\" id=\"inputEmail\" class=\"form-control\" autocomplete=\"email\" required autofocus>
  260. \t\t\t\t\t\t<br>
  261. \t\t\t\t\t\t<label for=\"inputPassword\">Mot de passe</label>
  262. \t\t\t\t\t\t<input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required>
  263. \t\t\t\t\t\t<input type=\"hidden\" name=\"_csrf_token\" value=\"{{ csrf_token('authenticate') }}\">
  264. \t\t\t\t\t\t<br>
  265. \t\t\t\t\t\t<div class=\"checkbox mb-3 d-none\">
  266. \t\t\t\t\t\t\t<label>
  267. \t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"_remember_me\">
  268. \t\t\t\t\t\t\t\tSe souvenir de moi
  269. \t\t\t\t\t\t\t</label>
  270. \t\t\t\t\t\t</div>
  271. \t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary mt-3\">
  272. \t\t\t\t\t\t\tConnexion
  273. \t\t\t\t\t\t</button>
  274. \t\t\t\t\t</form>
  275. \t\t\t\t</div>
  276. \t\t\t</div>
  277. \t\t</div>
  278. \t</div>
  279. </div>
  280. {% endblock %}""security/login.html.twig""/var/www/ARCHIPELIA2-QA/templates/security/login.html.twig");
  281.     }
  282. }