var/cache/dev/twig/b3/b3fcb4a0320a5ad79854d0d941d2a86b.php line 38

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. /* _widget-customer-connection.html.twig */
  16. class __TwigTemplate_4fc6bcdab24ccf194ad12f795d265455 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""_widget-customer-connection.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""_widget-customer-connection.html.twig"));
  38.         // line 1
  39.         if (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); })()), "user", [], "any"falsefalsefalse1)) {
  40.             // line 2
  41.             yield "    <div id=\"widget-customer-connection\" class=\"mt-3\">
  42.         <p class=\"mb-2\">
  43.             <strong>";
  44.             // line 4
  45.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["connectedCustomer"]) || array_key_exists("connectedCustomer"$context) ? $context["connectedCustomer"] : (function () { throw new RuntimeError('Variable "connectedCustomer" does not exist.'4$this->source); })()), "get", [], "method"falsefalsefalse4), "getFullName", [], "any"falsefalsefalse4), "html"nulltrue);
  46.             yield "</strong>
  47.             |
  48.             <small>Référence client : ";
  49.             // line 6
  50.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["connectedCustomer"]) || array_key_exists("connectedCustomer"$context) ? $context["connectedCustomer"] : (function () { throw new RuntimeError('Variable "connectedCustomer" does not exist.'6$this->source); })()), "get", [], "method"falsefalsefalse6), "getCliReference", [], "any"falsefalsefalse6), "html"nulltrue);
  51.             yield "</small>
  52.         </p>
  53.         <a class=\"btn btn-secondary btn-sm\" href=\"";
  54.             // line 8
  55.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("logout");
  56.             yield "\">me déconnecter</a>
  57.     </div>
  58. ";
  59.         }
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.         
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64.         yield from [];
  65.     }
  66.     /**
  67.      * @codeCoverageIgnore
  68.      */
  69.     public function getTemplateName(): string
  70.     {
  71.         return "_widget-customer-connection.html.twig";
  72.     }
  73.     /**
  74.      * @codeCoverageIgnore
  75.      */
  76.     public function isTraitable(): bool
  77.     {
  78.         return false;
  79.     }
  80.     /**
  81.      * @codeCoverageIgnore
  82.      */
  83.     public function getDebugInfo(): array
  84.     {
  85.         return array (  64 => 8,  59 => 6,  54 => 4,  50 => 2,  48 => 1,);
  86.     }
  87.     public function getSourceContext(): Source
  88.     {
  89.         return new Source("{% if app.user %}
  90.     <div id=\"widget-customer-connection\" class=\"mt-3\">
  91.         <p class=\"mb-2\">
  92.             <strong>{{ connectedCustomer.get().getFullName }}</strong>
  93.             |
  94.             <small>Référence client : {{ connectedCustomer.get().getCliReference }}</small>
  95.         </p>
  96.         <a class=\"btn btn-secondary btn-sm\" href=\"{{ path('logout') }}\">me déconnecter</a>
  97.     </div>
  98. {% endif %}""_widget-customer-connection.html.twig""/var/www/reims.fr/extranet/current/templates/_widget-customer-connection.html.twig");
  99.     }
  100. }