Initial commit

This commit is contained in:
2020-10-07 10:37:15 +02:00
commit ce5f440392
28157 changed files with 4429172 additions and 0 deletions

View File

@@ -0,0 +1,476 @@
<?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;
/* @WebProfiler/Collector/validator.html.twig */
class __TwigTemplate_6de420fed09d604757e399396e094bb2324ca4ab01130516f5aa2a87d2c6c8d3 extends \Twig\Template
{
public function __construct(Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@WebProfiler/Collector/validator.html.twig", 1);
$this->blocks = [
'toolbar' => [$this, 'block_toolbar'],
'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", "@WebProfiler/Collector/validator.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", "@WebProfiler/Collector/validator.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 " ";
if ((($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "violationsCount", []) > 0) || twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calls", [])))) {
// line 5
echo " ";
$context["status_color"] = (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "violationsCount", [])) ? ("red") : (""));
// line 6
echo " ";
ob_start();
// line 7
echo " ";
echo twig_include($this->env, $context, "@WebProfiler/Icon/validator.svg");
echo "
<span class=\"sf-toolbar-value\">
";
// line 9
echo twig_escape_filter($this->env, (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "violationsCount", [])) ? ($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "violationsCount", [])) : (twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calls", [])))), "html", null, true);
echo "
</span>
";
$context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 12
echo "
";
// line 13
ob_start();
// line 14
echo " <div class=\"sf-toolbar-info-piece\">
<b>Validator calls</b>
<span class=\"sf-toolbar-status\">";
// line 16
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>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Number of violations</b>
<span class=\"sf-toolbar-status";
// line 20
echo ((($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "violationsCount", []) > 0)) ? (" sf-toolbar-status-red") : (""));
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "violationsCount", []), "html", null, true);
echo "</span>
</div>
";
$context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 23
echo "
";
// line 24
echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => ($context["profiler_url"] ?? $this->getContext($context, "profiler_url")), "status" => ($context["status_color"] ?? $this->getContext($context, "status_color"))]);
echo "
";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 28
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 29
echo " <span class=\"label";
echo (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "violationsCount", [])) ? (" label-status-error") : (""));
echo " ";
echo ((twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calls", []))) ? ("disabled") : (""));
echo "\">
<span class=\"icon\">";
// line 30
echo twig_include($this->env, $context, "@WebProfiler/Icon/validator.svg");
echo "</span>
<strong>Validator</strong>
";
// line 32
if (($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "violationsCount", []) > 0)) {
// line 33
echo " <span class=\"count\">
<span>";
// line 34
echo twig_escape_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "violationsCount", []), "html", null, true);
echo "</span>
</span>
";
}
// line 37
echo " </span>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 40
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 41
echo " <h2>Validator calls</h2>
";
// line 43
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calls", []));
$context['_iterated'] = false;
$context['loop'] = [
'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["call"]) {
// line 44
echo " <div class=\"sf-validator sf-reset\">
<span class=\"metadata\">In
";
// line 46
$context["caller"] = $this->getAttribute($context["call"], "caller", []);
// line 47
echo " ";
if ($this->getAttribute(($context["caller"] ?? $this->getContext($context, "caller")), "line", [])) {
// line 48
echo " ";
$context["link"] = $this->env->getExtension('Symfony\Bridge\Twig\Extension\CodeExtension')->getFileLink($this->getAttribute(($context["caller"] ?? $this->getContext($context, "caller")), "file", []), $this->getAttribute(($context["caller"] ?? $this->getContext($context, "caller")), "line", []));
// line 49
echo " ";
if (($context["link"] ?? $this->getContext($context, "link"))) {
// line 50
echo " <a href=\"";
echo twig_escape_filter($this->env, ($context["link"] ?? $this->getContext($context, "link")), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["caller"] ?? $this->getContext($context, "caller")), "file", []), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute(($context["caller"] ?? $this->getContext($context, "caller")), "name", []), "html", null, true);
echo "</a>
";
} else {
// line 52
echo " <abbr title=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["caller"] ?? $this->getContext($context, "caller")), "file", []), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute(($context["caller"] ?? $this->getContext($context, "caller")), "name", []), "html", null, true);
echo "</abbr>
";
}
// line 54
echo " ";
} else {
// line 55
echo " ";
echo twig_escape_filter($this->env, $this->getAttribute(($context["caller"] ?? $this->getContext($context, "caller")), "name", []), "html", null, true);
echo "
";
}
// line 57
echo " line <a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-trace-";
echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index0", []), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute(($context["caller"] ?? $this->getContext($context, "caller")), "line", []), "html", null, true);
echo "</a> (<a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-context-";
echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index0", []), "html", null, true);
echo "\">context</a>):
</span>
<div class=\"sf-validator-compact hidden\" id=\"sf-trace-";
// line 60
echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index0", []), "html", null, true);
echo "\">
<div class=\"trace\">
";
// line 62
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\CodeExtension')->fileExcerpt($this->getAttribute(($context["caller"] ?? $this->getContext($context, "caller")), "file", []), $this->getAttribute(($context["caller"] ?? $this->getContext($context, "caller")), "line", []));
echo "
</div>
</div>
<div class=\"sf-validator-compact hidden sf-validator-context\" id=\"sf-context-";
// line 66
echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index0", []), "html", null, true);
echo "\">
";
// line 67
echo call_user_func_array($this->env->getFunction('profiler_dump')->getCallable(), [$this->env, $this->getAttribute($context["call"], "context", []), 1]);
echo "
</div>
";
// line 70
if (twig_length_filter($this->env, $this->getAttribute($context["call"], "violations", []))) {
// line 71
echo " <table>
<thead>
<tr>
<th>Path</th>
<th>Message</th>
<th>Invalid value</th>
<th>Violation</th>
</tr>
</thead>
";
// line 80
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["call"], "violations", []));
foreach ($context['_seq'] as $context["_key"] => $context["violation"]) {
// line 81
echo " <tr>
<td>";
// line 82
echo twig_escape_filter($this->env, $this->getAttribute($context["violation"], "propertyPath", []), "html", null, true);
echo "</td>
<td>";
// line 83
echo twig_escape_filter($this->env, $this->getAttribute($context["violation"], "message", []), "html", null, true);
echo "</td>
<td>";
// line 84
echo call_user_func_array($this->env->getFunction('profiler_dump')->getCallable(), [$this->env, $this->getAttribute($context["violation"], "seek", [0 => "invalidValue"], "method")]);
echo "</td>
<td>";
// line 85
echo call_user_func_array($this->env->getFunction('profiler_dump')->getCallable(), [$this->env, $context["violation"]]);
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['violation'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo " </table>
";
} else {
// line 90
echo " No violations
";
}
// line 92
echo " </div>
";
$context['_iterated'] = true;
++$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'];
}
}
if (!$context['_iterated']) {
// line 94
echo " <div class=\"empty\">
<p>No calls to the validator were collected during this request.</p>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['call'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@WebProfiler/Collector/validator.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 335 => 94, 321 => 92, 317 => 90, 313 => 88, 304 => 85, 300 => 84, 296 => 83, 292 => 82, 289 => 81, 285 => 80, 274 => 71, 272 => 70, 266 => 67, 262 => 66, 255 => 62, 250 => 60, 239 => 57, 233 => 55, 230 => 54, 222 => 52, 212 => 50, 209 => 49, 206 => 48, 203 => 47, 201 => 46, 197 => 44, 179 => 43, 175 => 41, 166 => 40, 155 => 37, 149 => 34, 146 => 33, 144 => 32, 139 => 30, 132 => 29, 123 => 28, 110 => 24, 107 => 23, 99 => 20, 92 => 16, 88 => 14, 86 => 13, 83 => 12, 77 => 9, 71 => 7, 68 => 6, 65 => 5, 62 => 4, 53 => 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 %}
{% if collector.violationsCount > 0 or collector.calls|length %}
{% set status_color = collector.violationsCount ? 'red' : '' %}
{% set icon %}
{{ include('@WebProfiler/Icon/validator.svg') }}
<span class=\"sf-toolbar-value\">
{{ collector.violationsCount ?: collector.calls|length }}
</span>
{% endset %}
{% set text %}
<div class=\"sf-toolbar-info-piece\">
<b>Validator calls</b>
<span class=\"sf-toolbar-status\">{{ collector.calls|length }}</span>
</div>
<div class=\"sf-toolbar-info-piece\">
<b>Number of violations</b>
<span class=\"sf-toolbar-status {{- collector.violationsCount > 0 ? ' sf-toolbar-status-red' }}\">{{ collector.violationsCount }}</span>
</div>
{% endset %}
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
{% endif %}
{% endblock %}
{% block menu %}
<span class=\"label {{- collector.violationsCount ? ' label-status-error' }} {{ collector.calls is empty ? 'disabled' }}\">
<span class=\"icon\">{{ include('@WebProfiler/Icon/validator.svg') }}</span>
<strong>Validator</strong>
{% if collector.violationsCount > 0 %}
<span class=\"count\">
<span>{{ collector.violationsCount }}</span>
</span>
{% endif %}
</span>
{% endblock %}
{% block panel %}
<h2>Validator calls</h2>
{% for call in collector.calls %}
<div class=\"sf-validator sf-reset\">
<span class=\"metadata\">In
{% set caller = call.caller %}
{% if caller.line %}
{% set link = caller.file|file_link(caller.line) %}
{% if link %}
<a href=\"{{ link }}\" title=\"{{ caller.file }}\">{{ caller.name }}</a>
{% else %}
<abbr title=\"{{ caller.file }}\">{{ caller.name }}</abbr>
{% endif %}
{% else %}
{{ caller.name }}
{% endif %}
line <a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-trace-{{ loop.index0 }}\">{{ caller.line }}</a> (<a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-context-{{ loop.index0 }}\">context</a>):
</span>
<div class=\"sf-validator-compact hidden\" id=\"sf-trace-{{ loop.index0 }}\">
<div class=\"trace\">
{{ caller.file|file_excerpt(caller.line) }}
</div>
</div>
<div class=\"sf-validator-compact hidden sf-validator-context\" id=\"sf-context-{{ loop.index0 }}\">
{{ profiler_dump(call.context, maxDepth=1) }}
</div>
{% if call.violations|length %}
<table>
<thead>
<tr>
<th>Path</th>
<th>Message</th>
<th>Invalid value</th>
<th>Violation</th>
</tr>
</thead>
{% for violation in call.violations %}
<tr>
<td>{{ violation.propertyPath }}</td>
<td>{{ violation.message }}</td>
<td>{{ profiler_dump(violation.seek('invalidValue')) }}</td>
<td>{{ profiler_dump(violation) }}</td>
</tr>
{% endfor %}
</table>
{% else %}
No violations
{% endif %}
</div>
{% else %}
<div class=\"empty\">
<p>No calls to the validator were collected during this request.</p>
</div>
{% endfor %}
{% endblock %}
", "@WebProfiler/Collector/validator.html.twig", "/Volumes/Dev/Sources/Clients/taome/Nouveau_site/www/vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/validator.html.twig");
}
}