Initial commit

This commit is contained in:
2019-11-20 07:44:43 +01:00
commit 5bf49c4a81
41188 changed files with 5459177 additions and 0 deletions

View File

@@ -0,0 +1,926 @@
<?php
/* @WebProfiler/Collector/translation.html.twig */
class __TwigTemplate_f065fa5513ae21a1eeef7aa5cd0c0558dd056dd528c86ea8a0e034ef8798878b extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@WebProfiler/Collector/translation.html.twig", 1);
$this->blocks = array(
'toolbar' => array($this, 'block_toolbar'),
'menu' => array($this, 'block_menu'),
'panel' => array($this, 'block_panel'),
'panelContent' => array($this, 'block_panelContent'),
'messages' => array($this, 'block_messages'),
'defined_messages' => array($this, 'block_defined_messages'),
'fallback_messages' => array($this, 'block_fallback_messages'),
'missing_messages' => array($this, 'block_missing_messages'),
);
}
protected function doGetParent(array $context)
{
return "@WebProfiler/Profiler/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_3a60bb4d825841cf3e619039ab1fbb980e3246618b8736f562fa245ccd8b228d = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_3a60bb4d825841cf3e619039ab1fbb980e3246618b8736f562fa245ccd8b228d->enter($__internal_3a60bb4d825841cf3e619039ab1fbb980e3246618b8736f562fa245ccd8b228d_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/translation.html.twig"));
$__internal_66e3e19a41a1407c3781cf4b192e9d13ccb370e650cf26018f1a2ec440886bdb = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_66e3e19a41a1407c3781cf4b192e9d13ccb370e650cf26018f1a2ec440886bdb->enter($__internal_66e3e19a41a1407c3781cf4b192e9d13ccb370e650cf26018f1a2ec440886bdb_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/translation.html.twig"));
// line 3
$context["helper"] = $this;
// line 1
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_3a60bb4d825841cf3e619039ab1fbb980e3246618b8736f562fa245ccd8b228d->leave($__internal_3a60bb4d825841cf3e619039ab1fbb980e3246618b8736f562fa245ccd8b228d_prof);
$__internal_66e3e19a41a1407c3781cf4b192e9d13ccb370e650cf26018f1a2ec440886bdb->leave($__internal_66e3e19a41a1407c3781cf4b192e9d13ccb370e650cf26018f1a2ec440886bdb_prof);
}
// line 5
public function block_toolbar($context, array $blocks = array())
{
$__internal_45f1486cf9effe308f0de04e966e02481d85e39bfe83127c42a092b92673f9da = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_45f1486cf9effe308f0de04e966e02481d85e39bfe83127c42a092b92673f9da->enter($__internal_45f1486cf9effe308f0de04e966e02481d85e39bfe83127c42a092b92673f9da_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "toolbar"));
$__internal_41dd1838cc4ebb1f35b040a48172b9a1bfdf0a6da2b52892fb7bfb3691bf9f35 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_41dd1838cc4ebb1f35b040a48172b9a1bfdf0a6da2b52892fb7bfb3691bf9f35->enter($__internal_41dd1838cc4ebb1f35b040a48172b9a1bfdf0a6da2b52892fb7bfb3691bf9f35_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "toolbar"));
// line 6
echo " ";
if (twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "messages", array()))) {
// line 7
echo " ";
ob_start();
// line 8
echo " ";
echo twig_include($this->env, $context, "@WebProfiler/Icon/translation.svg");
echo "
";
// line 9
$context["status_color"] = (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", array())) ? ("red") : ((($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", array())) ? ("yellow") : (""))));
// line 10
echo " ";
$context["error_count"] = ($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", array()) + $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", array()));
// line 11
echo " <span class=\"sf-toolbar-value\">";
echo twig_escape_filter($this->env, ((($context["error_count"] ?? $this->getContext($context, "error_count"))) ? (($context["error_count"] ?? $this->getContext($context, "error_count"))) : ($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countDefines", array()))), "html", null, true);
echo "</span>
";
$context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
// line 13
echo "
";
// line 14
ob_start();
// line 15
echo " <div class=\"sf-toolbar-info-piece\">
<b>Locale</b>
<span class=\"sf-toolbar-status\">
";
// line 18
echo twig_escape_filter($this->env, (($this->getAttribute(($context["collector"] ?? null), "locale", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["collector"] ?? null), "locale", array()), "-")) : ("-")), "html", null, true);
echo "
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Missing messages</b>
<span class=\"sf-toolbar-status sf-toolbar-status-";
// line 23
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", array())) ? ("red") : (""));
echo "\">
";
// line 24
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", array()), "html", null, true);
echo "
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Fallback messages</b>
<span class=\"sf-toolbar-status sf-toolbar-status-";
// line 30
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", array())) ? ("yellow") : (""));
echo "\">
";
// line 31
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", array()), "html", null, true);
echo "
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Defined messages</b>
<span class=\"sf-toolbar-status\">";
// line 37
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countDefines", array()), "html", null, true);
echo "</span>
</div>
";
$context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
// line 40
echo "
";
// line 41
echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", array("link" => ($context["profiler_url"] ?? $this->getContext($context, "profiler_url")), "status" => ($context["status_color"] ?? $this->getContext($context, "status_color"))));
echo "
";
}
$__internal_41dd1838cc4ebb1f35b040a48172b9a1bfdf0a6da2b52892fb7bfb3691bf9f35->leave($__internal_41dd1838cc4ebb1f35b040a48172b9a1bfdf0a6da2b52892fb7bfb3691bf9f35_prof);
$__internal_45f1486cf9effe308f0de04e966e02481d85e39bfe83127c42a092b92673f9da->leave($__internal_45f1486cf9effe308f0de04e966e02481d85e39bfe83127c42a092b92673f9da_prof);
}
// line 45
public function block_menu($context, array $blocks = array())
{
$__internal_d74dc8087b417d444e9073ae70f1d9135ef076679c984f20c49c10a06bb2dcfd = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_d74dc8087b417d444e9073ae70f1d9135ef076679c984f20c49c10a06bb2dcfd->enter($__internal_d74dc8087b417d444e9073ae70f1d9135ef076679c984f20c49c10a06bb2dcfd_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "menu"));
$__internal_dd1e4139c717627c464ce11046775bc25144fc363f8376fe8a99fb0d0fb7612b = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_dd1e4139c717627c464ce11046775bc25144fc363f8376fe8a99fb0d0fb7612b->enter($__internal_dd1e4139c717627c464ce11046775bc25144fc363f8376fe8a99fb0d0fb7612b_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "menu"));
// line 46
echo " <span class=\"label label-status-";
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", array())) ? ("error") : ((($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", array())) ? ("warning") : (""))));
echo " ";
echo ((twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "messages", array()))) ? ("disabled") : (""));
echo "\">
<span class=\"icon\">";
// line 47
echo twig_include($this->env, $context, "@WebProfiler/Icon/translation.svg");
echo "</span>
<strong>Translation</strong>
";
// line 49
if (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", array()) || $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", array()))) {
// line 50
echo " ";
$context["error_count"] = ($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", array()) + $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", array()));
// line 51
echo " <span class=\"count\">
<span>";
// line 52
echo twig_escape_filter($this->env, ($context["error_count"] ?? $this->getContext($context, "error_count")), "html", null, true);
echo "</span>
</span>
";
}
// line 55
echo " </span>
";
$__internal_dd1e4139c717627c464ce11046775bc25144fc363f8376fe8a99fb0d0fb7612b->leave($__internal_dd1e4139c717627c464ce11046775bc25144fc363f8376fe8a99fb0d0fb7612b_prof);
$__internal_d74dc8087b417d444e9073ae70f1d9135ef076679c984f20c49c10a06bb2dcfd->leave($__internal_d74dc8087b417d444e9073ae70f1d9135ef076679c984f20c49c10a06bb2dcfd_prof);
}
// line 58
public function block_panel($context, array $blocks = array())
{
$__internal_81c592bc0cde61c8a7c84ec466700bf8a89f3a8255f38b4ed5d16149a239c337 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_81c592bc0cde61c8a7c84ec466700bf8a89f3a8255f38b4ed5d16149a239c337->enter($__internal_81c592bc0cde61c8a7c84ec466700bf8a89f3a8255f38b4ed5d16149a239c337_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
$__internal_1a70ef3e3274dfdf8f48a85019d122c0a4b9248f93e3b65105221db7135acdba = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_1a70ef3e3274dfdf8f48a85019d122c0a4b9248f93e3b65105221db7135acdba->enter($__internal_1a70ef3e3274dfdf8f48a85019d122c0a4b9248f93e3b65105221db7135acdba_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
// line 59
echo " ";
if (twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "messages", array()))) {
// line 60
echo " <h2>Translations</h2>
<div class=\"empty\">
<p>No translations have been called.</p>
</div>
";
} else {
// line 65
echo " ";
$this->displayBlock("panelContent", $context, $blocks);
echo "
";
}
$__internal_1a70ef3e3274dfdf8f48a85019d122c0a4b9248f93e3b65105221db7135acdba->leave($__internal_1a70ef3e3274dfdf8f48a85019d122c0a4b9248f93e3b65105221db7135acdba_prof);
$__internal_81c592bc0cde61c8a7c84ec466700bf8a89f3a8255f38b4ed5d16149a239c337->leave($__internal_81c592bc0cde61c8a7c84ec466700bf8a89f3a8255f38b4ed5d16149a239c337_prof);
}
// line 69
public function block_panelContent($context, array $blocks = array())
{
$__internal_bbcdcfb2bfaf9b1f10661f1fe1bb312e49ae56f0ecf78a2f661f54e5f4a07cac = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_bbcdcfb2bfaf9b1f10661f1fe1bb312e49ae56f0ecf78a2f661f54e5f4a07cac->enter($__internal_bbcdcfb2bfaf9b1f10661f1fe1bb312e49ae56f0ecf78a2f661f54e5f4a07cac_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panelContent"));
$__internal_5f4f46a0f8ab85892b0ffaaba7f381666a38f0759550fdb89c0f26a8419234a7 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_5f4f46a0f8ab85892b0ffaaba7f381666a38f0759550fdb89c0f26a8419234a7->enter($__internal_5f4f46a0f8ab85892b0ffaaba7f381666a38f0759550fdb89c0f26a8419234a7_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panelContent"));
// line 70
echo "
<h2>Translation Locales</h2>
<div class=\"metrics\">
<div class=\"metric\">
<span class=\"value\">";
// line 75
echo twig_escape_filter($this->env, (($this->getAttribute(($context["collector"] ?? null), "locale", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute(($context["collector"] ?? null), "locale", array()), "-")) : ("-")), "html", null, true);
echo "</span>
<span class=\"label\">Locale</span>
</div>
<div class=\"metric\">
<span class=\"value\">";
// line 79
echo twig_escape_filter($this->env, _twig_default_filter(twig_join_filter($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "fallbackLocales", array()), ", "), "-"), "html", null, true);
echo "</span>
<span class=\"label\">Fallback locales</span>
</div>
</div>
<h2>Translation Metrics</h2>
<div class=\"metrics\">
<div class=\"metric\">
<span class=\"value\">";
// line 88
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countDefines", array()), "html", null, true);
echo "</span>
<span class=\"label\">Defined messages</span>
</div>
<div class=\"metric\">
<span class=\"value\">";
// line 93
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", array()), "html", null, true);
echo "</span>
<span class=\"label\">Fallback messages</span>
</div>
<div class=\"metric\">
<span class=\"value\">";
// line 98
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", array()), "html", null, true);
echo "</span>
<span class=\"label\">Missing messages</span>
</div>
</div>
<h2>Translation Messages</h2>
";
// line 105
$this->displayBlock('messages', $context, $blocks);
// line 185
echo "
";
$__internal_5f4f46a0f8ab85892b0ffaaba7f381666a38f0759550fdb89c0f26a8419234a7->leave($__internal_5f4f46a0f8ab85892b0ffaaba7f381666a38f0759550fdb89c0f26a8419234a7_prof);
$__internal_bbcdcfb2bfaf9b1f10661f1fe1bb312e49ae56f0ecf78a2f661f54e5f4a07cac->leave($__internal_bbcdcfb2bfaf9b1f10661f1fe1bb312e49ae56f0ecf78a2f661f54e5f4a07cac_prof);
}
// line 105
public function block_messages($context, array $blocks = array())
{
$__internal_8e7bfd6e846943f35d59797a533d0e176a90b9b9eafa6597396900ff93eb834c = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_8e7bfd6e846943f35d59797a533d0e176a90b9b9eafa6597396900ff93eb834c->enter($__internal_8e7bfd6e846943f35d59797a533d0e176a90b9b9eafa6597396900ff93eb834c_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "messages"));
$__internal_097f32d12c23eaac2f96224a1d1cdbc320ca488ee5be33d6ebcae43b007e4ff5 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_097f32d12c23eaac2f96224a1d1cdbc320ca488ee5be33d6ebcae43b007e4ff5->enter($__internal_097f32d12c23eaac2f96224a1d1cdbc320ca488ee5be33d6ebcae43b007e4ff5_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "messages"));
// line 106
echo "
";
// line 108
echo " ";
list($context["messages_defined"], $context["messages_missing"], $context["messages_fallback"]) = array(array(), array(), array());
// line 109
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "messages", array()));
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 110
echo " ";
if (($this->getAttribute($context["message"], "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_DEFINED"))) {
// line 111
echo " ";
$context["messages_defined"] = twig_array_merge(($context["messages_defined"] ?? $this->getContext($context, "messages_defined")), array(0 => $context["message"]));
// line 112
echo " ";
} elseif (($this->getAttribute($context["message"], "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING"))) {
// line 113
echo " ";
$context["messages_missing"] = twig_array_merge(($context["messages_missing"] ?? $this->getContext($context, "messages_missing")), array(0 => $context["message"]));
// line 114
echo " ";
} elseif (($this->getAttribute($context["message"], "state", array()) == twig_constant("Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK"))) {
// line 115
echo " ";
$context["messages_fallback"] = twig_array_merge(($context["messages_fallback"] ?? $this->getContext($context, "messages_fallback")), array(0 => $context["message"]));
// line 116
echo " ";
}
// line 117
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 118
echo "
<div class=\"sf-tabs\">
<div class=\"tab\">
<h3 class=\"tab-title\">Defined <span class=\"badge\">";
// line 121
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countDefines", array()), "html", null, true);
echo "</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are correctly translated into the given locale.
</p>
";
// line 128
if (twig_test_empty(($context["messages_defined"] ?? $this->getContext($context, "messages_defined")))) {
// line 129
echo " <div class=\"empty\">
<p>None of the used translation messages are defined for the given locale.</p>
</div>
";
} else {
// line 133
echo " ";
$this->displayBlock('defined_messages', $context, $blocks);
// line 136
echo " ";
}
// line 137
echo " </div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Fallback <span class=\"badge ";
// line 141
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", array())) ? ("status-warning") : (""));
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countFallbacks", array()), "html", null, true);
echo "</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are not available for the given locale
but Symfony found them in the fallback locale catalog.
</p>
";
// line 149
if (twig_test_empty(($context["messages_fallback"] ?? $this->getContext($context, "messages_fallback")))) {
// line 150
echo " <div class=\"empty\">
<p>No fallback translation messages were used.</p>
</div>
";
} else {
// line 154
echo " ";
$this->displayBlock('fallback_messages', $context, $blocks);
// line 157
echo " ";
}
// line 158
echo " </div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Missing <span class=\"badge ";
// line 162
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", array())) ? ("status-error") : (""));
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "countMissings", array()), "html", null, true);
echo "</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are not available for the given locale and cannot
be found in the fallback locales. Add them to the translation
catalogue to avoid Symfony outputting untranslated contents.
</p>
";
// line 171
if (twig_test_empty(($context["messages_missing"] ?? $this->getContext($context, "messages_missing")))) {
// line 172
echo " <div class=\"empty\">
<p>There are no messages of this category.</p>
</div>
";
} else {
// line 176
echo " ";
$this->displayBlock('missing_messages', $context, $blocks);
// line 179
echo " ";
}
// line 180
echo " </div>
</div>
</div>
";
$__internal_097f32d12c23eaac2f96224a1d1cdbc320ca488ee5be33d6ebcae43b007e4ff5->leave($__internal_097f32d12c23eaac2f96224a1d1cdbc320ca488ee5be33d6ebcae43b007e4ff5_prof);
$__internal_8e7bfd6e846943f35d59797a533d0e176a90b9b9eafa6597396900ff93eb834c->leave($__internal_8e7bfd6e846943f35d59797a533d0e176a90b9b9eafa6597396900ff93eb834c_prof);
}
// line 133
public function block_defined_messages($context, array $blocks = array())
{
$__internal_c1a59aac9d85ea0d2f5245ac6f478a11ccefbc708cf0f2476a1abda43111268d = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_c1a59aac9d85ea0d2f5245ac6f478a11ccefbc708cf0f2476a1abda43111268d->enter($__internal_c1a59aac9d85ea0d2f5245ac6f478a11ccefbc708cf0f2476a1abda43111268d_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "defined_messages"));
$__internal_3242865d0623ac8998475a021dbc75b09394c30564f1d199001b59d7c6df9d34 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_3242865d0623ac8998475a021dbc75b09394c30564f1d199001b59d7c6df9d34->enter($__internal_3242865d0623ac8998475a021dbc75b09394c30564f1d199001b59d7c6df9d34_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "defined_messages"));
// line 134
echo " ";
echo $context["helper"]->getrender_table(($context["messages_defined"] ?? $this->getContext($context, "messages_defined")));
echo "
";
$__internal_3242865d0623ac8998475a021dbc75b09394c30564f1d199001b59d7c6df9d34->leave($__internal_3242865d0623ac8998475a021dbc75b09394c30564f1d199001b59d7c6df9d34_prof);
$__internal_c1a59aac9d85ea0d2f5245ac6f478a11ccefbc708cf0f2476a1abda43111268d->leave($__internal_c1a59aac9d85ea0d2f5245ac6f478a11ccefbc708cf0f2476a1abda43111268d_prof);
}
// line 154
public function block_fallback_messages($context, array $blocks = array())
{
$__internal_d4fd2b309871f9aea204c497abf268ff229dc2df08eb98bd89f6f190703ee34f = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_d4fd2b309871f9aea204c497abf268ff229dc2df08eb98bd89f6f190703ee34f->enter($__internal_d4fd2b309871f9aea204c497abf268ff229dc2df08eb98bd89f6f190703ee34f_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "fallback_messages"));
$__internal_f37061088c2865ef8bfa5a08c8556c0fab7157aa946c92adc9e00e5783007f7d = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_f37061088c2865ef8bfa5a08c8556c0fab7157aa946c92adc9e00e5783007f7d->enter($__internal_f37061088c2865ef8bfa5a08c8556c0fab7157aa946c92adc9e00e5783007f7d_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "fallback_messages"));
// line 155
echo " ";
echo $context["helper"]->getrender_table(($context["messages_fallback"] ?? $this->getContext($context, "messages_fallback")));
echo "
";
$__internal_f37061088c2865ef8bfa5a08c8556c0fab7157aa946c92adc9e00e5783007f7d->leave($__internal_f37061088c2865ef8bfa5a08c8556c0fab7157aa946c92adc9e00e5783007f7d_prof);
$__internal_d4fd2b309871f9aea204c497abf268ff229dc2df08eb98bd89f6f190703ee34f->leave($__internal_d4fd2b309871f9aea204c497abf268ff229dc2df08eb98bd89f6f190703ee34f_prof);
}
// line 176
public function block_missing_messages($context, array $blocks = array())
{
$__internal_128ab3793484cff676dd72e07c8cc12f5d9c47d8eb5192b8357d9431263549a4 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_128ab3793484cff676dd72e07c8cc12f5d9c47d8eb5192b8357d9431263549a4->enter($__internal_128ab3793484cff676dd72e07c8cc12f5d9c47d8eb5192b8357d9431263549a4_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "missing_messages"));
$__internal_47fcd48746dfe146ec4a7acbeee89df54bd93ed785263250540f8e123d247c35 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_47fcd48746dfe146ec4a7acbeee89df54bd93ed785263250540f8e123d247c35->enter($__internal_47fcd48746dfe146ec4a7acbeee89df54bd93ed785263250540f8e123d247c35_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "missing_messages"));
// line 177
echo " ";
echo $context["helper"]->getrender_table(($context["messages_missing"] ?? $this->getContext($context, "messages_missing")));
echo "
";
$__internal_47fcd48746dfe146ec4a7acbeee89df54bd93ed785263250540f8e123d247c35->leave($__internal_47fcd48746dfe146ec4a7acbeee89df54bd93ed785263250540f8e123d247c35_prof);
$__internal_128ab3793484cff676dd72e07c8cc12f5d9c47d8eb5192b8357d9431263549a4->leave($__internal_128ab3793484cff676dd72e07c8cc12f5d9c47d8eb5192b8357d9431263549a4_prof);
}
// line 188
public function getrender_table($__messages__ = null, ...$__varargs__)
{
$context = $this->env->mergeGlobals(array(
"messages" => $__messages__,
"varargs" => $__varargs__,
));
$blocks = array();
ob_start();
try {
$__internal_d7133235e38104aaf8092f162ccd72d526266c8e4f577b6b07f20cc137c2adcc = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_d7133235e38104aaf8092f162ccd72d526266c8e4f577b6b07f20cc137c2adcc->enter($__internal_d7133235e38104aaf8092f162ccd72d526266c8e4f577b6b07f20cc137c2adcc_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "render_table"));
$__internal_46f74a726eb21d01803ee70ae1d0433a345582d958de3301a720a2edffe18763 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_46f74a726eb21d01803ee70ae1d0433a345582d958de3301a720a2edffe18763->enter($__internal_46f74a726eb21d01803ee70ae1d0433a345582d958de3301a720a2edffe18763_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "render_table"));
// line 189
echo " <table>
<thead>
<tr>
<th>Locale</th>
<th>Domain</th>
<th>Times used</th>
<th>Message ID</th>
<th>Message Preview</th>
</tr>
</thead>
<tbody>
";
// line 200
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["messages"] ?? $this->getContext($context, "messages")));
$context['loop'] = array(
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
);
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 201
echo " <tr>
<td class=\"font-normal text-small nowrap\">";
// line 202
echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "locale", array()), "html", null, true);
echo "</td>
<td class=\"font-normal text-small text-bold nowrap\">";
// line 203
echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "domain", array()), "html", null, true);
echo "</td>
<td class=\"font-normal text-small nowrap\">";
// line 204
echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "count", array()), "html", null, true);
echo "</td>
<td>
<span class=\"nowrap\">";
// line 206
echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "id", array()), "html", null, true);
echo "</span>
";
// line 208
if ( !(null === $this->getAttribute($context["message"], "transChoiceNumber", array()))) {
// line 209
echo " <small class=\"newline\">(pluralization is used)</small>
";
}
// line 211
echo "
";
// line 212
if ((twig_length_filter($this->env, $this->getAttribute($context["message"], "parameters", array())) > 0)) {
// line 213
echo " <button class=\"btn-link newline text-small sf-toggle\" data-toggle-selector=\"#parameters-";
echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
echo "\" data-toggle-alt-content=\"Hide parameters\">Show parameters</button>
<div id=\"parameters-";
// line 215
echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
echo "\" class=\"hidden\">
";
// line 216
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["message"], "parameters", array()));
foreach ($context['_seq'] as $context["_key"] => $context["parameters"]) {
// line 217
echo " ";
echo call_user_func_array($this->env->getFunction('profiler_dump')->getCallable(), array($this->env, $context["parameters"], 1));
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['parameters'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 219
echo " </div>
";
}
// line 221
echo " </td>
<td class=\"prewrap\">";
// line 222
echo twig_escape_filter($this->env, $this->getAttribute($context["message"], "translation", array()), "html", null, true);
echo "</td>
</tr>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 225
echo " </tbody>
</table>
";
$__internal_46f74a726eb21d01803ee70ae1d0433a345582d958de3301a720a2edffe18763->leave($__internal_46f74a726eb21d01803ee70ae1d0433a345582d958de3301a720a2edffe18763_prof);
$__internal_d7133235e38104aaf8092f162ccd72d526266c8e4f577b6b07f20cc137c2adcc->leave($__internal_d7133235e38104aaf8092f162ccd72d526266c8e4f577b6b07f20cc137c2adcc_prof);
} catch (Exception $e) {
ob_end_clean();
throw $e;
} catch (Throwable $e) {
ob_end_clean();
throw $e;
}
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
}
public function getTemplateName()
{
return "@WebProfiler/Collector/translation.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 650 => 225, 633 => 222, 630 => 221, 626 => 219, 617 => 217, 613 => 216, 609 => 215, 603 => 213, 601 => 212, 598 => 211, 594 => 209, 592 => 208, 587 => 206, 582 => 204, 578 => 203, 574 => 202, 571 => 201, 554 => 200, 541 => 189, 523 => 188, 510 => 177, 501 => 176, 488 => 155, 479 => 154, 466 => 134, 457 => 133, 443 => 180, 440 => 179, 437 => 176, 431 => 172, 429 => 171, 415 => 162, 409 => 158, 406 => 157, 403 => 154, 397 => 150, 395 => 149, 382 => 141, 376 => 137, 373 => 136, 370 => 133, 364 => 129, 362 => 128, 352 => 121, 347 => 118, 341 => 117, 338 => 116, 335 => 115, 332 => 114, 329 => 113, 326 => 112, 323 => 111, 320 => 110, 315 => 109, 312 => 108, 309 => 106, 300 => 105, 289 => 185, 287 => 105, 277 => 98, 269 => 93, 261 => 88, 249 => 79, 242 => 75, 235 => 70, 226 => 69, 212 => 65, 205 => 60, 202 => 59, 193 => 58, 182 => 55, 176 => 52, 173 => 51, 170 => 50, 168 => 49, 163 => 47, 156 => 46, 147 => 45, 134 => 41, 131 => 40, 125 => 37, 116 => 31, 112 => 30, 103 => 24, 99 => 23, 91 => 18, 86 => 15, 84 => 14, 81 => 13, 75 => 11, 72 => 10, 70 => 9, 65 => 8, 62 => 7, 59 => 6, 50 => 5, 40 => 1, 38 => 3, 11 => 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 Twig_Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
{% import _self as helper %}
{% block toolbar %}
{% if collector.messages|length %}
{% set icon %}
{{ include('@WebProfiler/Icon/translation.svg') }}
{% set status_color = collector.countMissings ? 'red' : collector.countFallbacks ? 'yellow' %}
{% set error_count = collector.countMissings + collector.countFallbacks %}
<span class=\"sf-toolbar-value\">{{ error_count ?: collector.countDefines }}</span>
{% endset %}
{% set text %}
<div class=\"sf-toolbar-info-piece\">
<b>Locale</b>
<span class=\"sf-toolbar-status\">
{{ collector.locale|default('-') }}
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Missing messages</b>
<span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.countMissings ? 'red' }}\">
{{ collector.countMissings }}
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Fallback messages</b>
<span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.countFallbacks ? 'yellow' }}\">
{{ collector.countFallbacks }}
</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Defined messages</b>
<span class=\"sf-toolbar-status\">{{ collector.countDefines }}</span>
</div>
{% endset %}
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
{% endif %}
{% endblock %}
{% block menu %}
<span class=\"label label-status-{{ collector.countMissings ? 'error' : collector.countFallbacks ? 'warning' }} {{ collector.messages is empty ? 'disabled' }}\">
<span class=\"icon\">{{ include('@WebProfiler/Icon/translation.svg') }}</span>
<strong>Translation</strong>
{% if collector.countMissings or collector.countFallbacks %}
{% set error_count = collector.countMissings + collector.countFallbacks %}
<span class=\"count\">
<span>{{ error_count }}</span>
</span>
{% endif %}
</span>
{% endblock %}
{% block panel %}
{% if collector.messages is empty %}
<h2>Translations</h2>
<div class=\"empty\">
<p>No translations have been called.</p>
</div>
{% else %}
{{ block('panelContent') }}
{% endif %}
{% endblock %}
{% block panelContent %}
<h2>Translation Locales</h2>
<div class=\"metrics\">
<div class=\"metric\">
<span class=\"value\">{{ collector.locale|default('-') }}</span>
<span class=\"label\">Locale</span>
</div>
<div class=\"metric\">
<span class=\"value\">{{ collector.fallbackLocales|join(', ')|default('-') }}</span>
<span class=\"label\">Fallback locales</span>
</div>
</div>
<h2>Translation Metrics</h2>
<div class=\"metrics\">
<div class=\"metric\">
<span class=\"value\">{{ collector.countDefines }}</span>
<span class=\"label\">Defined messages</span>
</div>
<div class=\"metric\">
<span class=\"value\">{{ collector.countFallbacks }}</span>
<span class=\"label\">Fallback messages</span>
</div>
<div class=\"metric\">
<span class=\"value\">{{ collector.countMissings }}</span>
<span class=\"label\">Missing messages</span>
</div>
</div>
<h2>Translation Messages</h2>
{% block messages %}
{# sort translation messages in groups #}
{% set messages_defined, messages_missing, messages_fallback = [], [], [] %}
{% for message in collector.messages %}
{% if message.state == constant('Symfony\\\\Component\\\\Translation\\\\DataCollectorTranslator::MESSAGE_DEFINED') %}
{% set messages_defined = messages_defined|merge([message]) %}
{% elseif message.state == constant('Symfony\\\\Component\\\\Translation\\\\DataCollectorTranslator::MESSAGE_MISSING') %}
{% set messages_missing = messages_missing|merge([message]) %}
{% elseif message.state == constant('Symfony\\\\Component\\\\Translation\\\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK') %}
{% set messages_fallback = messages_fallback|merge([message]) %}
{% endif %}
{% endfor %}
<div class=\"sf-tabs\">
<div class=\"tab\">
<h3 class=\"tab-title\">Defined <span class=\"badge\">{{ collector.countDefines }}</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are correctly translated into the given locale.
</p>
{% if messages_defined is empty %}
<div class=\"empty\">
<p>None of the used translation messages are defined for the given locale.</p>
</div>
{% else %}
{% block defined_messages %}
{{ helper.render_table(messages_defined) }}
{% endblock %}
{% endif %}
</div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Fallback <span class=\"badge {{ collector.countFallbacks ? 'status-warning' }}\">{{ collector.countFallbacks }}</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are not available for the given locale
but Symfony found them in the fallback locale catalog.
</p>
{% if messages_fallback is empty %}
<div class=\"empty\">
<p>No fallback translation messages were used.</p>
</div>
{% else %}
{% block fallback_messages %}
{{ helper.render_table(messages_fallback) }}
{% endblock %}
{% endif %}
</div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Missing <span class=\"badge {{ collector.countMissings ? 'status-error' }}\">{{ collector.countMissings }}</span></h3>
<div class=\"tab-content\">
<p class=\"help\">
These messages are not available for the given locale and cannot
be found in the fallback locales. Add them to the translation
catalogue to avoid Symfony outputting untranslated contents.
</p>
{% if messages_missing is empty %}
<div class=\"empty\">
<p>There are no messages of this category.</p>
</div>
{% else %}
{% block missing_messages %}
{{ helper.render_table(messages_missing) }}
{% endblock %}
{% endif %}
</div>
</div>
</div>
{% endblock messages %}
{% endblock %}
{% macro render_table(messages) %}
<table>
<thead>
<tr>
<th>Locale</th>
<th>Domain</th>
<th>Times used</th>
<th>Message ID</th>
<th>Message Preview</th>
</tr>
</thead>
<tbody>
{% for message in messages %}
<tr>
<td class=\"font-normal text-small nowrap\">{{ message.locale }}</td>
<td class=\"font-normal text-small text-bold nowrap\">{{ message.domain }}</td>
<td class=\"font-normal text-small nowrap\">{{ message.count }}</td>
<td>
<span class=\"nowrap\">{{ message.id }}</span>
{% if message.transChoiceNumber is not null %}
<small class=\"newline\">(pluralization is used)</small>
{% endif %}
{% if message.parameters|length > 0 %}
<button class=\"btn-link newline text-small sf-toggle\" data-toggle-selector=\"#parameters-{{ loop.index }}\" data-toggle-alt-content=\"Hide parameters\">Show parameters</button>
<div id=\"parameters-{{ loop.index }}\" class=\"hidden\">
{% for parameters in message.parameters %}
{{ profiler_dump(parameters, maxDepth=1) }}
{% endfor %}
</div>
{% endif %}
</td>
<td class=\"prewrap\">{{ message.translation }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endmacro %}
", "@WebProfiler/Collector/translation.html.twig", "/var/www/clients/client1/web14/web/vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/translation.html.twig");
}
}

View File

@@ -0,0 +1,393 @@
<?php
/* CsaGuzzleBundle:Collector:guzzle.html.twig */
class __TwigTemplate_2db3218782c1254b55c44a618a57cf7c29eacad31d71cd2b723c173c44df9128 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "CsaGuzzleBundle:Collector:guzzle.html.twig", 1);
$this->blocks = array(
'toolbar' => array($this, 'block_toolbar'),
'head' => array($this, 'block_head'),
'menu' => array($this, 'block_menu'),
'panel' => array($this, 'block_panel'),
);
}
protected function doGetParent(array $context)
{
return "@WebProfiler/Profiler/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_66d38bc412526bc506f2779f8e17086f8f1373abd474735b0c0831797a2b199f = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_66d38bc412526bc506f2779f8e17086f8f1373abd474735b0c0831797a2b199f->enter($__internal_66d38bc412526bc506f2779f8e17086f8f1373abd474735b0c0831797a2b199f_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "CsaGuzzleBundle:Collector:guzzle.html.twig"));
$__internal_976b55aae99937da73b80e95598d60788d5a3163157a1b39416737e8d2d98496 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_976b55aae99937da73b80e95598d60788d5a3163157a1b39416737e8d2d98496->enter($__internal_976b55aae99937da73b80e95598d60788d5a3163157a1b39416737e8d2d98496_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "CsaGuzzleBundle:Collector:guzzle.html.twig"));
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_66d38bc412526bc506f2779f8e17086f8f1373abd474735b0c0831797a2b199f->leave($__internal_66d38bc412526bc506f2779f8e17086f8f1373abd474735b0c0831797a2b199f_prof);
$__internal_976b55aae99937da73b80e95598d60788d5a3163157a1b39416737e8d2d98496->leave($__internal_976b55aae99937da73b80e95598d60788d5a3163157a1b39416737e8d2d98496_prof);
}
// line 3
public function block_toolbar($context, array $blocks = array())
{
$__internal_50f1d6df18fd97d4cfa89ece0fd1d9a4d6fed021718d2fb7d9510040ba25033d = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_50f1d6df18fd97d4cfa89ece0fd1d9a4d6fed021718d2fb7d9510040ba25033d->enter($__internal_50f1d6df18fd97d4cfa89ece0fd1d9a4d6fed021718d2fb7d9510040ba25033d_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "toolbar"));
$__internal_810df944f425cf41e137235b42b084ab57e263db4b5894cd0bcedda419795ec7 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_810df944f425cf41e137235b42b084ab57e263db4b5894cd0bcedda419795ec7->enter($__internal_810df944f425cf41e137235b42b084ab57e263db4b5894cd0bcedda419795ec7_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "toolbar"));
// line 4
echo " ";
$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", array()));
// line 7
echo " ";
$context["errorCount"] = twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "errors", array()));
// 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", array("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 Twig_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 Twig_Markup($tmp, $this->env->getCharset());
// line 37
echo "
";
// line 38
echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", array("link" => "guzzle", "status" => ($context["color_code"] ?? $this->getContext($context, "color_code"))));
echo "
";
$__internal_810df944f425cf41e137235b42b084ab57e263db4b5894cd0bcedda419795ec7->leave($__internal_810df944f425cf41e137235b42b084ab57e263db4b5894cd0bcedda419795ec7_prof);
$__internal_50f1d6df18fd97d4cfa89ece0fd1d9a4d6fed021718d2fb7d9510040ba25033d->leave($__internal_50f1d6df18fd97d4cfa89ece0fd1d9a4d6fed021718d2fb7d9510040ba25033d_prof);
}
// line 41
public function block_head($context, array $blocks = array())
{
$__internal_64433a20fb3f2463f954e21d045f54d66ae3b5f7f3ae1f111c03a0a8006927d5 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_64433a20fb3f2463f954e21d045f54d66ae3b5f7f3ae1f111c03a0a8006927d5->enter($__internal_64433a20fb3f2463f954e21d045f54d66ae3b5f7f3ae1f111c03a0a8006927d5_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "head"));
$__internal_0d554a24be6d5b281ed5aaf73ee734d7b912cefe379c3c8a270453cd8e0f9153 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_0d554a24be6d5b281ed5aaf73ee734d7b912cefe379c3c8a270453cd8e0f9153->enter($__internal_0d554a24be6d5b281ed5aaf73ee734d7b912cefe379c3c8a270453cd8e0f9153_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"] = ((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_0d554a24be6d5b281ed5aaf73ee734d7b912cefe379c3c8a270453cd8e0f9153->leave($__internal_0d554a24be6d5b281ed5aaf73ee734d7b912cefe379c3c8a270453cd8e0f9153_prof);
$__internal_64433a20fb3f2463f954e21d045f54d66ae3b5f7f3ae1f111c03a0a8006927d5->leave($__internal_64433a20fb3f2463f954e21d045f54d66ae3b5f7f3ae1f111c03a0a8006927d5_prof);
}
// line 53
public function block_menu($context, array $blocks = array())
{
$__internal_5c54a1cd44c1a7c29694d6e8ae2f5760c66d1400eb21abd6e8b610c3ad081d21 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_5c54a1cd44c1a7c29694d6e8ae2f5760c66d1400eb21abd6e8b610c3ad081d21->enter($__internal_5c54a1cd44c1a7c29694d6e8ae2f5760c66d1400eb21abd6e8b610c3ad081d21_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "menu"));
$__internal_dba53196b3b85fb6625f39c6dec9931fac665b3ec15be789865956c7fd455289 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_dba53196b3b85fb6625f39c6dec9931fac665b3ec15be789865956c7fd455289->enter($__internal_dba53196b3b85fb6625f39c6dec9931fac665b3ec15be789865956c7fd455289_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", array())) > 0)) {
echo "label-status-error";
}
echo "\">
<span class=\"icon\">
";
// line 56
$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", array("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", array())), "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", array()))) {
// line 67
echo " <span>";
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calls", array())), "html", null, true);
echo "</span>
";
}
// line 69
echo " </span>
</span>
";
$__internal_dba53196b3b85fb6625f39c6dec9931fac665b3ec15be789865956c7fd455289->leave($__internal_dba53196b3b85fb6625f39c6dec9931fac665b3ec15be789865956c7fd455289_prof);
$__internal_5c54a1cd44c1a7c29694d6e8ae2f5760c66d1400eb21abd6e8b610c3ad081d21->leave($__internal_5c54a1cd44c1a7c29694d6e8ae2f5760c66d1400eb21abd6e8b610c3ad081d21_prof);
}
// line 73
public function block_panel($context, array $blocks = array())
{
$__internal_5165461f7df4a6eabb8b34a0815a6979b4760a158f1a14959789b4b821d80ec9 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_5165461f7df4a6eabb8b34a0815a6979b4760a158f1a14959789b4b821d80ec9->enter($__internal_5165461f7df4a6eabb8b34a0815a6979b4760a158f1a14959789b4b821d80ec9_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
$__internal_5bfb9b9293811f4b9a7cf9645fdb7d63df98236b789bcf39ce0a4d8a76098948 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_5bfb9b9293811f4b9a7cf9645fdb7d63df98236b789bcf39ce0a4d8a76098948->enter($__internal_5bfb9b9293811f4b9a7cf9645fdb7d63df98236b789bcf39ce0a4d8a76098948_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", array())), "HTTP calls"), "html", null, true);
echo "</h2>
";
// line 75
echo twig_include($this->env, $context, "@CsaGuzzle/Calls/list.html.twig", array("calls" => $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calls", array())));
echo "
";
$__internal_5bfb9b9293811f4b9a7cf9645fdb7d63df98236b789bcf39ce0a4d8a76098948->leave($__internal_5bfb9b9293811f4b9a7cf9645fdb7d63df98236b789bcf39ce0a4d8a76098948_prof);
$__internal_5165461f7df4a6eabb8b34a0815a6979b4760a158f1a14959789b4b821d80ec9->leave($__internal_5165461f7df4a6eabb8b34a0815a6979b4760a158f1a14959789b4b821d80ec9_prof);
}
public function getTemplateName()
{
return "CsaGuzzleBundle:Collector:guzzle.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 279 => 75, 274 => 74, 265 => 73, 253 => 69, 247 => 67, 245 => 66, 240 => 64, 236 => 62, 230 => 60, 224 => 58, 221 => 57, 219 => 56, 211 => 54, 202 => 53, 188 => 48, 183 => 47, 180 => 46, 178 => 45, 174 => 44, 170 => 43, 165 => 42, 156 => 41, 144 => 38, 141 => 37, 135 => 34, 128 => 30, 124 => 28, 122 => 27, 119 => 26, 116 => 25, 111 => 23, 106 => 22, 99 => 20, 94 => 19, 91 => 18, 89 => 17, 86 => 16, 83 => 15, 80 => 14, 77 => 13, 74 => 12, 71 => 11, 68 => 10, 66 => 9, 63 => 8, 60 => 7, 58 => 6, 55 => 5, 52 => 4, 43 => 3, 11 => 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 Twig_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", "/var/www/clients/client1/web14/web/vendor/csa/guzzle-bundle/src/Resources/views/Collector/guzzle.html.twig");
}
}