Files
taome/var/cache/dev/twig/ed/edcbb978ad06859ee7a172f1a1b1195e15e82f76fe1643d1c8d3f01258cf801f.php
2020-10-07 10:37:15 +02:00

405 lines
20 KiB
PHP

<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* CsaGuzzleBundle:Collector:guzzle.html.twig */
class __TwigTemplate_3806f9e1c7dd8eae34f82e8389c25a5a283d74e817a58cbaa426da7ffdeb14fb extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "CsaGuzzleBundle:Collector:guzzle.html.twig", 1);
$this->blocks = [
'toolbar' => [$this, 'block_toolbar'],
'head' => [$this, 'block_head'],
'menu' => [$this, 'block_menu'],
'panel' => [$this, 'block_panel'],
];
}
protected function doGetParent(array $context)
{
return "@WebProfiler/Profiler/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CsaGuzzleBundle:Collector:guzzle.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CsaGuzzleBundle:Collector:guzzle.html.twig"));
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_toolbar($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
// line 4
echo " ";
$context["profiler_markup_version"] = (((isset($context["profiler_markup_version"]) || array_key_exists("profiler_markup_version", $context))) ? (_twig_default_filter(($context["profiler_markup_version"] ?? $this->getContext($context, "profiler_markup_version")), 1)) : (1));
// line 5
echo "
";
// line 6
$context["callCount"] = twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calls", []));
// line 7
echo " ";
$context["errorCount"] = twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "errors", []));
// line 8
echo "
";
// line 9
if ((($context["callCount"] ?? $this->getContext($context, "callCount")) == 0)) {
// line 10
echo " ";
$context["color_code"] = "";
// line 11
echo " ";
} elseif ((($context["errorCount"] ?? $this->getContext($context, "errorCount")) > 0)) {
// line 12
echo " ";
$context["color_code"] = "red";
// line 13
echo " ";
} else {
// line 14
echo " ";
$context["color_code"] = "green";
// line 15
echo " ";
}
// line 16
echo "
";
// line 17
ob_start();
// line 18
echo " ";
if ((($context["profiler_markup_version"] ?? $this->getContext($context, "profiler_markup_version")) == 1)) {
// line 19
echo " ";
echo twig_include($this->env, $context, "@CsaGuzzle/Icon/guzzle.svg", ["height" => 28, "color" => "#3F3F3F"]);
echo "
<span class=\"sf-toolbar-status sf-toolbar-status-";
// line 20
echo twig_escape_filter($this->env, ($context["color_code"] ?? $this->getContext($context, "color_code")), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, ($context["callCount"] ?? $this->getContext($context, "callCount")), "html", null, true);
echo "</span>
";
} else {
// line 22
echo " ";
echo twig_include($this->env, $context, "@CsaGuzzle/Icon/guzzle.svg");
echo "
<span class=\"sf-toolbar-value\">";
// line 23
echo twig_escape_filter($this->env, ($context["callCount"] ?? $this->getContext($context, "callCount")), "html", null, true);
echo "</span>
";
}
// line 25
echo " ";
$context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 26
echo "
";
// line 27
ob_start();
// line 28
echo " <div class=\"sf-toolbar-info-piece\">
<b>Success</b>
<span class=\"sf-toolbar-status sf-toolbar-status-green\">";
// line 30
echo twig_escape_filter($this->env, (($context["callCount"] ?? $this->getContext($context, "callCount")) - ($context["errorCount"] ?? $this->getContext($context, "errorCount"))), "html", null, true);
echo "</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Errors</b>
<span class=\"sf-toolbar-status sf-toolbar-status-red\">";
// line 34
echo twig_escape_filter($this->env, ($context["errorCount"] ?? $this->getContext($context, "errorCount")), "html", null, true);
echo "</span>
</div>
";
$context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 37
echo "
";
// line 38
echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => "guzzle", "status" => ($context["color_code"] ?? $this->getContext($context, "color_code"))]);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 41
public function block_head($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
// line 42
echo " ";
$this->displayParentBlock("head", $context, $blocks);
echo "
<link rel=\"stylesheet\" href=\"";
// line 43
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("bundles/csaguzzle/css/screen.min.css"), "html", null, true);
echo "\">
<script src=\"";
// line 44
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("bundles/csaguzzle/js/guzzle.min.js"), "html", null, true);
echo "\"></script>
";
// line 45
$context["profiler_markup_version"] = (((isset($context["profiler_markup_version"]) || array_key_exists("profiler_markup_version", $context))) ? (_twig_default_filter(($context["profiler_markup_version"] ?? $this->getContext($context, "profiler_markup_version")), 1)) : (1));
// line 46
echo " ";
if ((($context["profiler_markup_version"] ?? $this->getContext($context, "profiler_markup_version")) == 1)) {
// line 47
echo " <link rel=\"stylesheet\" href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("bundles/csaguzzle/css/legacy.min.css"), "html", null, true);
echo "\">
<script src=\"";
// line 48
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\AssetExtension')->getAssetUrl("bundles/csaguzzle/js/legacy.min.js"), "html", null, true);
echo "\"></script>
<script type=\"text/javascript\">window.addEventListener('load', Guzzle.createTabs, false);</script>
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 53
public function block_menu($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
// line 54
echo " <span class=\"label ";
if ((twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "errors", [])) > 0)) {
echo "label-status-error";
}
echo "\">
<span class=\"icon\">
";
// line 56
$context["profiler_markup_version"] = (((isset($context["profiler_markup_version"]) || array_key_exists("profiler_markup_version", $context))) ? (_twig_default_filter(($context["profiler_markup_version"] ?? $this->getContext($context, "profiler_markup_version")), 1)) : (1));
// line 57
echo " ";
if ((($context["profiler_markup_version"] ?? $this->getContext($context, "profiler_markup_version")) == 1)) {
// line 58
echo " ";
echo twig_include($this->env, $context, "@CsaGuzzle/Icon/guzzle.svg", ["height" => 30, "color" => "#3F3F3F"]);
echo "
";
} else {
// line 60
echo " ";
echo twig_include($this->env, $context, "@CsaGuzzle/Icon/guzzle.svg");
echo "
";
}
// line 62
echo "
</span>
<strong>";
// line 64
echo twig_escape_filter($this->env, _twig_default_filter(twig_capitalize_string_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "name", [])), "HTTP calls"), "html", null, true);
echo "</strong>
<span class=\"count\">
";
// line 66
if ( !twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calls", []))) {
// line 67
echo " <span>";
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calls", [])), "html", null, true);
echo "</span>
";
}
// line 69
echo " </span>
</span>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 73
public function block_panel($context, array $blocks = [])
{
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
// line 74
echo " <h2>";
echo twig_escape_filter($this->env, _twig_default_filter(twig_capitalize_string_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "name", [])), "HTTP calls"), "html", null, true);
echo "</h2>
";
// line 75
echo twig_include($this->env, $context, "@CsaGuzzle/Calls/list.html.twig", ["calls" => $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calls", [])]);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "CsaGuzzleBundle:Collector:guzzle.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 290 => 75, 285 => 74, 276 => 73, 264 => 69, 258 => 67, 256 => 66, 251 => 64, 247 => 62, 241 => 60, 235 => 58, 232 => 57, 230 => 56, 222 => 54, 213 => 53, 199 => 48, 194 => 47, 191 => 46, 189 => 45, 185 => 44, 181 => 43, 176 => 42, 167 => 41, 155 => 38, 152 => 37, 146 => 34, 139 => 30, 135 => 28, 133 => 27, 130 => 26, 127 => 25, 122 => 23, 117 => 22, 110 => 20, 105 => 19, 102 => 18, 100 => 17, 97 => 16, 94 => 15, 91 => 14, 88 => 13, 85 => 12, 82 => 11, 79 => 10, 77 => 9, 74 => 8, 71 => 7, 69 => 6, 66 => 5, 63 => 4, 54 => 3, 22 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
{% block toolbar %}
{% set profiler_markup_version = profiler_markup_version|default(1) %}
{% set callCount = collector.calls|length %}
{% set errorCount = collector.errors|length %}
{% if callCount == 0 %}
{% set color_code = '' %}
{% elseif errorCount > 0 %}
{% set color_code = 'red' %}
{% else %}
{% set color_code = 'green' %}
{% endif %}
{% set icon %}
{% if profiler_markup_version == 1 %}
{{ include('@CsaGuzzle/Icon/guzzle.svg', { height: 28, color: '#3F3F3F' }) }}
<span class=\"sf-toolbar-status sf-toolbar-status-{{ color_code }}\">{{ callCount }}</span>
{% else %}
{{ include('@CsaGuzzle/Icon/guzzle.svg') }}
<span class=\"sf-toolbar-value\">{{ callCount }}</span>
{% endif %}
{% endset %}
{% set text %}
<div class=\"sf-toolbar-info-piece\">
<b>Success</b>
<span class=\"sf-toolbar-status sf-toolbar-status-green\">{{ callCount - errorCount }}</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Errors</b>
<span class=\"sf-toolbar-status sf-toolbar-status-red\">{{ errorCount }}</span>
</div>
{% endset %}
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: 'guzzle', status: color_code }) }}
{% endblock %}
{% block head %}
{{ parent() }}
<link rel=\"stylesheet\" href=\"{{ asset('bundles/csaguzzle/css/screen.min.css') }}\">
<script src=\"{{ asset('bundles/csaguzzle/js/guzzle.min.js') }}\"></script>
{% set profiler_markup_version = profiler_markup_version|default(1) %}
{% if profiler_markup_version == 1 %}
<link rel=\"stylesheet\" href=\"{{ asset('bundles/csaguzzle/css/legacy.min.css') }}\">
<script src=\"{{ asset('bundles/csaguzzle/js/legacy.min.js') }}\"></script>
<script type=\"text/javascript\">window.addEventListener('load', Guzzle.createTabs, false);</script>
{% endif %}
{% endblock %}
{% block menu %}
<span class=\"label {% if collector.errors|length > 0 %}label-status-error{% endif %}\">
<span class=\"icon\">
{% set profiler_markup_version = profiler_markup_version|default(1) %}
{% if profiler_markup_version == 1 %}
{{ include('@CsaGuzzle/Icon/guzzle.svg', { height: 30, color: '#3F3F3F' }) }}
{% else %}
{{ include('@CsaGuzzle/Icon/guzzle.svg')}}
{% endif %}
</span>
<strong>{{ collector.name|capitalize|default('HTTP calls') }}</strong>
<span class=\"count\">
{% if collector.calls is not empty %}
<span>{{ collector.calls|length }}</span>
{% endif %}
</span>
</span>
{% endblock %}
{% block panel %}
<h2>{{ (collector.name|capitalize)|default('HTTP calls') }}</h2>
{{ include('@CsaGuzzle/Calls/list.html.twig', { calls: collector.calls }) }}
{% endblock %}
", "CsaGuzzleBundle:Collector:guzzle.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/vendor/csa/guzzle-bundle/src/Resources/views/Collector/guzzle.html.twig");
}
}