var_dev/cache/dev/twig/13/133392fb80277da5169ac2179c6ce5b5.php line 55

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @WebProfiler/Collector/validator.html.twig */
  16. class __TwigTemplate_4ed3fb200ea738e2f72906180e594ef3 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->blocks = [
  28. 'toolbar' => [$this, 'block_toolbar'],
  29. 'menu' => [$this, 'block_menu'],
  30. 'panel' => [$this, 'block_panel'],
  31. ];
  32. }
  33. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34. {
  35. // line 1
  36. return "@WebProfiler/Profiler/layout.html.twig";
  37. }
  38. protected function doDisplay(array $context, array $blocks = []): iterable
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/validator.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/validator.html.twig"));
  45. $this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@WebProfiler/Collector/validator.html.twig", 1);
  46. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49. }
  50. // line 3
  51. /**
  52. * @return iterable<null|scalar|\Stringable>
  53. */
  54. public function block_toolbar(array $context, array $blocks = []): iterable
  55. {
  56. $macros = $this->macros;
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
  61. // line 4
  62. yield " ";
  63. if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 4, $this->source); })()), "violationsCount", [], "any", false, false, false, 4) > 0) || Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 4, $this->source); })()), "calls", [], "any", false, false, false, 4)))) {
  64. // line 5
  65. yield " ";
  66. $context["status_color"] = ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 5, $this->source); })()), "violationsCount", [], "any", false, false, false, 5)) ? ("red") : (""));
  67. // line 6
  68. yield " ";
  69. $context["icon"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  70. // line 7
  71. yield " ";
  72. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/validator.svg");
  73. yield "
  74. <span class=\"sf-toolbar-value\">
  75. ";
  76. // line 9
  77. yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 9, $this->source); })()), "violationsCount", [], "any", false, false, false, 9)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 9, $this->source); })()), "violationsCount", [], "any", false, false, false, 9), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 9, $this->source); })()), "calls", [], "any", false, false, false, 9)), "html", null, true)));
  78. yield "
  79. </span>
  80. ";
  81. yield from [];
  82. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  83. // line 12
  84. yield "
  85. ";
  86. // line 13
  87. $context["text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  88. // line 14
  89. yield " <div class=\"sf-toolbar-info-piece\">
  90. <b>Validator calls</b>
  91. <span class=\"sf-toolbar-status\">";
  92. // line 16
  93. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 16, $this->source); })()), "calls", [], "any", false, false, false, 16)), "html", null, true);
  94. yield "</span>
  95. </div>
  96. <div class=\"sf-toolbar-info-piece\">
  97. <b>Number of violations</b>
  98. <span class=\"sf-toolbar-status";
  99. // line 20
  100. yield (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 20, $this->source); })()), "violationsCount", [], "any", false, false, false, 20) > 0)) ? (" sf-toolbar-status-red") : (""));
  101. yield "\">";
  102. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 20, $this->source); })()), "violationsCount", [], "any", false, false, false, 20), "html", null, true);
  103. yield "</span>
  104. </div>
  105. ";
  106. yield from [];
  107. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  108. // line 23
  109. yield "
  110. ";
  111. // line 24
  112. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => (isset($context["profiler_url"]) || array_key_exists("profiler_url", $context) ? $context["profiler_url"] : (function () { throw new RuntimeError('Variable "profiler_url" does not exist.', 24, $this->source); })()), "status" => (isset($context["status_color"]) || array_key_exists("status_color", $context) ? $context["status_color"] : (function () { throw new RuntimeError('Variable "status_color" does not exist.', 24, $this->source); })())]);
  113. yield "
  114. ";
  115. }
  116. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  117. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  118. yield from [];
  119. }
  120. // line 28
  121. /**
  122. * @return iterable<null|scalar|\Stringable>
  123. */
  124. public function block_menu(array $context, array $blocks = []): iterable
  125. {
  126. $macros = $this->macros;
  127. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  128. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
  129. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  130. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
  131. // line 29
  132. yield " <span class=\"label";
  133. yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 29, $this->source); })()), "violationsCount", [], "any", false, false, false, 29)) ? (" label-status-error") : (""));
  134. yield " ";
  135. yield ((Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 29, $this->source); })()), "calls", [], "any", false, false, false, 29))) ? ("disabled") : (""));
  136. yield "\">
  137. <span class=\"icon\">";
  138. // line 30
  139. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/validator.svg");
  140. yield "</span>
  141. <strong>Validator</strong>
  142. ";
  143. // line 32
  144. if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 32, $this->source); })()), "violationsCount", [], "any", false, false, false, 32) > 0)) {
  145. // line 33
  146. yield " <span class=\"count\">
  147. <span>";
  148. // line 34
  149. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 34, $this->source); })()), "violationsCount", [], "any", false, false, false, 34), "html", null, true);
  150. yield "</span>
  151. </span>
  152. ";
  153. }
  154. // line 37
  155. yield " </span>
  156. ";
  157. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  158. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  159. yield from [];
  160. }
  161. // line 40
  162. /**
  163. * @return iterable<null|scalar|\Stringable>
  164. */
  165. public function block_panel(array $context, array $blocks = []): iterable
  166. {
  167. $macros = $this->macros;
  168. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  169. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
  170. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  171. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
  172. // line 41
  173. yield " <h2>Validator calls</h2>
  174. ";
  175. // line 43
  176. $context['_parent'] = $context;
  177. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 43, $this->source); })()), "calls", [], "any", false, false, false, 43));
  178. $context['_iterated'] = false;
  179. $context['loop'] = [
  180. 'parent' => $context['_parent'],
  181. 'index0' => 0,
  182. 'index' => 1,
  183. 'first' => true,
  184. ];
  185. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  186. $length = count($context['_seq']);
  187. $context['loop']['revindex0'] = $length - 1;
  188. $context['loop']['revindex'] = $length;
  189. $context['loop']['length'] = $length;
  190. $context['loop']['last'] = 1 === $length;
  191. }
  192. foreach ($context['_seq'] as $context["_key"] => $context["call"]) {
  193. // line 44
  194. yield " <div class=\"sf-validator sf-reset\">
  195. <span class=\"metadata\">In
  196. ";
  197. // line 46
  198. $context["caller"] = CoreExtension::getAttribute($this->env, $this->source, $context["call"], "caller", [], "any", false, false, false, 46);
  199. // line 47
  200. yield " ";
  201. if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 47, $this->source); })()), "line", [], "any", false, false, false, 47)) {
  202. // line 48
  203. yield " ";
  204. $context["link"] = $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileLink(CoreExtension::getAttribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 48, $this->source); })()), "file", [], "any", false, false, false, 48), CoreExtension::getAttribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 48, $this->source); })()), "line", [], "any", false, false, false, 48));
  205. // line 49
  206. yield " ";
  207. if ((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 49, $this->source); })())) {
  208. // line 50
  209. yield " <a href=\"";
  210. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["link"]) || array_key_exists("link", $context) ? $context["link"] : (function () { throw new RuntimeError('Variable "link" does not exist.', 50, $this->source); })()), "html", null, true);
  211. yield "\" title=\"";
  212. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 50, $this->source); })()), "file", [], "any", false, false, false, 50), "html", null, true);
  213. yield "\">";
  214. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 50, $this->source); })()), "name", [], "any", false, false, false, 50), "html", null, true);
  215. yield "</a>
  216. ";
  217. } else {
  218. // line 52
  219. yield " <abbr title=\"";
  220. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 52, $this->source); })()), "file", [], "any", false, false, false, 52), "html", null, true);
  221. yield "\">";
  222. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 52, $this->source); })()), "name", [], "any", false, false, false, 52), "html", null, true);
  223. yield "</abbr>
  224. ";
  225. }
  226. // line 54
  227. yield " ";
  228. } else {
  229. // line 55
  230. yield " ";
  231. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 55, $this->source); })()), "name", [], "any", false, false, false, 55), "html", null, true);
  232. yield "
  233. ";
  234. }
  235. // line 57
  236. yield " line <a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-trace-";
  237. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 57), "html", null, true);
  238. yield "\">";
  239. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 57, $this->source); })()), "line", [], "any", false, false, false, 57), "html", null, true);
  240. yield "</a> (<a class=\"text-small sf-toggle\" data-toggle-selector=\"#sf-context-";
  241. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 57), "html", null, true);
  242. yield "\">context</a>):
  243. </span>
  244. <div class=\"sf-validator-compact hidden\" id=\"sf-trace-";
  245. // line 60
  246. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 60), "html", null, true);
  247. yield "\">
  248. <div class=\"trace\">
  249. ";
  250. // line 62
  251. yield Twig\Extension\CoreExtension::replace($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->fileExcerpt(CoreExtension::getAttribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 62, $this->source); })()), "file", [], "any", false, false, false, 62), CoreExtension::getAttribute($this->env, $this->source, (isset($context["caller"]) || array_key_exists("caller", $context) ? $context["caller"] : (function () { throw new RuntimeError('Variable "caller" does not exist.', 62, $this->source); })()), "line", [], "any", false, false, false, 62)), ["#DD0000" => "var(--highlight-string)", "#007700" => "var(--highlight-keyword)", "#0000BB" => "var(--highlight-default)", "#FF8000" => "var(--highlight-comment)"]);
  252. // line 67
  253. yield "
  254. </div>
  255. </div>
  256. <div class=\"sf-validator-compact hidden sf-validator-context\" id=\"sf-context-";
  257. // line 71
  258. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index0", [], "any", false, false, false, 71), "html", null, true);
  259. yield "\">
  260. ";
  261. // line 72
  262. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["call"], "context", [], "any", false, false, false, 72), 1);
  263. yield "
  264. </div>
  265. ";
  266. // line 75
  267. if (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["call"], "violations", [], "any", false, false, false, 75))) {
  268. // line 76
  269. yield " <table>
  270. <thead>
  271. <tr>
  272. <th>Path</th>
  273. <th>Message</th>
  274. <th>Invalid value</th>
  275. <th>Violation</th>
  276. </tr>
  277. </thead>
  278. ";
  279. // line 85
  280. $context['_parent'] = $context;
  281. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["call"], "violations", [], "any", false, false, false, 85));
  282. foreach ($context['_seq'] as $context["_key"] => $context["violation"]) {
  283. // line 86
  284. yield " <tr>
  285. <td>";
  286. // line 87
  287. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["violation"], "propertyPath", [], "any", false, false, false, 87), "html", null, true);
  288. yield "</td>
  289. <td>";
  290. // line 88
  291. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["violation"], "message", [], "any", false, false, false, 88), "html", null, true);
  292. yield "</td>
  293. <td>";
  294. // line 89
  295. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["violation"], "seek", ["invalidValue"], "method", false, false, false, 89));
  296. yield "</td>
  297. <td>";
  298. // line 90
  299. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, $context["violation"]);
  300. yield "</td>
  301. </tr>
  302. ";
  303. }
  304. $_parent = $context['_parent'];
  305. unset($context['_seq'], $context['_key'], $context['violation'], $context['_parent']);
  306. $context = array_intersect_key($context, $_parent) + $_parent;
  307. // line 93
  308. yield " </table>
  309. ";
  310. } else {
  311. // line 95
  312. yield " No violations
  313. ";
  314. }
  315. // line 97
  316. yield " </div>
  317. ";
  318. $context['_iterated'] = true;
  319. ++$context['loop']['index0'];
  320. ++$context['loop']['index'];
  321. $context['loop']['first'] = false;
  322. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  323. --$context['loop']['revindex0'];
  324. --$context['loop']['revindex'];
  325. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  326. }
  327. }
  328. // line 102
  329. if (!$context['_iterated']) {
  330. // line 99
  331. yield " <div class=\"empty\">
  332. <p>No calls to the validator were collected during this request.</p>
  333. </div>
  334. ";
  335. }
  336. $_parent = $context['_parent'];
  337. unset($context['_seq'], $context['_key'], $context['call'], $context['_parent'], $context['_iterated'], $context['loop']);
  338. $context = array_intersect_key($context, $_parent) + $_parent;
  339. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  340. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  341. yield from [];
  342. }
  343. /**
  344. * @codeCoverageIgnore
  345. */
  346. public function getTemplateName(): string
  347. {
  348. return "@WebProfiler/Collector/validator.html.twig";
  349. }
  350. /**
  351. * @codeCoverageIgnore
  352. */
  353. public function isTraitable(): bool
  354. {
  355. return false;
  356. }
  357. /**
  358. * @codeCoverageIgnore
  359. */
  360. public function getDebugInfo(): array
  361. {
  362. return array ( 365 => 99, 363 => 102, 350 => 97, 346 => 95, 342 => 93, 333 => 90, 329 => 89, 325 => 88, 321 => 87, 318 => 86, 314 => 85, 303 => 76, 301 => 75, 295 => 72, 291 => 71, 285 => 67, 283 => 62, 278 => 60, 267 => 57, 261 => 55, 258 => 54, 250 => 52, 240 => 50, 237 => 49, 234 => 48, 231 => 47, 229 => 46, 225 => 44, 207 => 43, 203 => 41, 190 => 40, 178 => 37, 172 => 34, 169 => 33, 167 => 32, 162 => 30, 155 => 29, 142 => 28, 128 => 24, 125 => 23, 116 => 20, 109 => 16, 105 => 14, 103 => 13, 100 => 12, 93 => 9, 87 => 7, 84 => 6, 81 => 5, 78 => 4, 65 => 3, 42 => 1,);
  363. }
  364. public function getSourceContext(): Source
  365. {
  366. return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
  367. {% block toolbar %}
  368. {% if collector.violationsCount > 0 or collector.calls|length %}
  369. {% set status_color = collector.violationsCount ? 'red' %}
  370. {% set icon %}
  371. {{ include('@WebProfiler/Icon/validator.svg') }}
  372. <span class=\"sf-toolbar-value\">
  373. {{ collector.violationsCount ?: collector.calls|length }}
  374. </span>
  375. {% endset %}
  376. {% set text %}
  377. <div class=\"sf-toolbar-info-piece\">
  378. <b>Validator calls</b>
  379. <span class=\"sf-toolbar-status\">{{ collector.calls|length }}</span>
  380. </div>
  381. <div class=\"sf-toolbar-info-piece\">
  382. <b>Number of violations</b>
  383. <span class=\"sf-toolbar-status {{- collector.violationsCount > 0 ? ' sf-toolbar-status-red' }}\">{{ collector.violationsCount }}</span>
  384. </div>
  385. {% endset %}
  386. {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
  387. {% endif %}
  388. {% endblock %}
  389. {% block menu %}
  390. <span class=\"label {{- collector.violationsCount ? ' label-status-error' }} {{ collector.calls is empty ? 'disabled' }}\">
  391. <span class=\"icon\">{{ include('@WebProfiler/Icon/validator.svg') }}</span>
  392. <strong>Validator</strong>
  393. {% if collector.violationsCount > 0 %}
  394. <span class=\"count\">
  395. <span>{{ collector.violationsCount }}</span>
  396. </span>
  397. {% endif %}
  398. </span>
  399. {% endblock %}
  400. {% block panel %}
  401. <h2>Validator calls</h2>
  402. {% for call in collector.calls %}
  403. <div class=\"sf-validator sf-reset\">
  404. <span class=\"metadata\">In
  405. {% set caller = call.caller %}
  406. {% if caller.line %}
  407. {% set link = caller.file|file_link(caller.line) %}
  408. {% if link %}
  409. <a href=\"{{ link }}\" title=\"{{ caller.file }}\">{{ caller.name }}</a>
  410. {% else %}
  411. <abbr title=\"{{ caller.file }}\">{{ caller.name }}</abbr>
  412. {% endif %}
  413. {% else %}
  414. {{ caller.name }}
  415. {% endif %}
  416. 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>):
  417. </span>
  418. <div class=\"sf-validator-compact hidden\" id=\"sf-trace-{{ loop.index0 }}\">
  419. <div class=\"trace\">
  420. {{ caller.file|file_excerpt(caller.line)|replace({
  421. '#DD0000': 'var(--highlight-string)',
  422. '#007700': 'var(--highlight-keyword)',
  423. '#0000BB': 'var(--highlight-default)',
  424. '#FF8000': 'var(--highlight-comment)'
  425. })|raw }}
  426. </div>
  427. </div>
  428. <div class=\"sf-validator-compact hidden sf-validator-context\" id=\"sf-context-{{ loop.index0 }}\">
  429. {{ profiler_dump(call.context, maxDepth=1) }}
  430. </div>
  431. {% if call.violations|length %}
  432. <table>
  433. <thead>
  434. <tr>
  435. <th>Path</th>
  436. <th>Message</th>
  437. <th>Invalid value</th>
  438. <th>Violation</th>
  439. </tr>
  440. </thead>
  441. {% for violation in call.violations %}
  442. <tr>
  443. <td>{{ violation.propertyPath }}</td>
  444. <td>{{ violation.message }}</td>
  445. <td>{{ profiler_dump(violation.seek('invalidValue')) }}</td>
  446. <td>{{ profiler_dump(violation) }}</td>
  447. </tr>
  448. {% endfor %}
  449. </table>
  450. {% else %}
  451. No violations
  452. {% endif %}
  453. </div>
  454. {% else %}
  455. <div class=\"empty\">
  456. <p>No calls to the validator were collected during this request.</p>
  457. </div>
  458. {% endfor %}
  459. {% endblock %}
  460. ", "@WebProfiler/Collector/validator.html.twig", "/Volumes/madi/opt/madi/www/geopos_proj/vendor/symfony/web-profiler-bundle/Resources/views/Collector/validator.html.twig");
  461. }
  462. }