<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* _widget-customer-connection.html.twig */
class __TwigTemplate_4fc6bcdab24ccf194ad12f795d265455 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "_widget-customer-connection.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "_widget-customer-connection.html.twig"));
// line 1
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", false, false, false, 1)) {
// line 2
yield " <div id=\"widget-customer-connection\" class=\"mt-3\">
<p class=\"mb-2\">
<strong>";
// line 4
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 4), "getFullName", [], "any", false, false, false, 4), "html", null, true);
yield "</strong>
|
<small>Référence client : ";
// line 6
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 6), "getCliReference", [], "any", false, false, false, 6), "html", null, true);
yield "</small>
</p>
<a class=\"btn btn-secondary btn-sm\" href=\"";
// line 8
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("logout");
yield "\">me déconnecter</a>
</div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "_widget-customer-connection.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 64 => 8, 59 => 6, 54 => 4, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if app.user %}
<div id=\"widget-customer-connection\" class=\"mt-3\">
<p class=\"mb-2\">
<strong>{{ connectedCustomer.get().getFullName }}</strong>
|
<small>Référence client : {{ connectedCustomer.get().getCliReference }}</small>
</p>
<a class=\"btn btn-secondary btn-sm\" href=\"{{ path('logout') }}\">me déconnecter</a>
</div>
{% endif %}", "_widget-customer-connection.html.twig", "/var/www/reims.fr/extranet/current/templates/_widget-customer-connection.html.twig");
}
}