*/ private array $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'hwi_oauth_content' => [$this, 'block_hwi_oauth_content'], ]; } protected function doGetParent(array $context): bool|string|Template|TemplateWrapper { // line 1 return "@HWIOAuth/layout.html.twig"; } protected function doDisplay(array $context, array $blocks = []): iterable { $macros = $this->macros; $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@HWIOAuth/Connect/login.html.twig")); $this->parent = $this->loadTemplate("@HWIOAuth/layout.html.twig", "@HWIOAuth/Connect/login.html.twig", 1); yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks)); $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); } // line 3 /** * @return iterable */ public function block_hwi_oauth_content(array $context, array $blocks = []): iterable { $macros = $this->macros; $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "hwi_oauth_content")); // line 4 yield " "; if ((array_key_exists("error", $context) && (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 4, $this->source); })()))) { // line 5 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 5, $this->source); })()), "html", null, true); yield " "; } // line 7 yield " "; $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable($this->env->getRuntime('HWI\Bundle\OAuthBundle\Twig\Extension\OAuthRuntime')->getResourceOwners()); foreach ($context['_seq'] as $context["_key"] => $context["owner"]) { // line 8 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('HWI\Bundle\OAuthBundle\Twig\Extension\OAuthRuntime')->getLoginUrl($context["owner"]), "html", null, true); yield "\">"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["owner"], [], "HWIOAuthBundle"), "html", null, true); yield "
"; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['owner'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "@HWIOAuth/Connect/login.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 81 => 8, 76 => 7, 70 => 5, 67 => 4, 57 => 3, 40 => 1,); } public function getSourceContext(): Source { return new Source("{% extends '@HWIOAuth/layout.html.twig' %} {% block hwi_oauth_content %} {% if error is defined and error %} {{ error }} {% endif %} {% for owner in hwi_oauth_resource_owners() %} {{ owner | trans({}, 'HWIOAuthBundle') }}
{% endfor %} {% endblock hwi_oauth_content %} ", "@HWIOAuth/Connect/login.html.twig", "/home/skylar/Projects/mycomments-api/vendor/hwi/oauth-bundle/src/Resources/views/Connect/login.html.twig"); } }