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,68 @@
<?php
/* @WebProfiler/Icon/form.svg */
class __TwigTemplate_66099e18f990875d89dc96e0020a5ff48ffde6739f522467f6eb89cd2105814c extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_8a1e1b1face85431e1754483103ef63ebb2a84f99900c06cfa705c4bd9fc1451 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_8a1e1b1face85431e1754483103ef63ebb2a84f99900c06cfa705c4bd9fc1451->enter($__internal_8a1e1b1face85431e1754483103ef63ebb2a84f99900c06cfa705c4bd9fc1451_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Icon/form.svg"));
$__internal_34e3f3331a96cc4df7939f37fc4ce1638e8247437d051e95846261c08fd3d24c = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_34e3f3331a96cc4df7939f37fc4ce1638e8247437d051e95846261c08fd3d24c->enter($__internal_34e3f3331a96cc4df7939f37fc4ce1638e8247437d051e95846261c08fd3d24c_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Icon/form.svg"));
// line 1
echo "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" enable-background=\"new 0 0 24 24\" xml:space=\"preserve\">
<path fill=\"#AAAAAA\" d=\"M20.5,4H18V2.5C18,1.7,17.3,1,16.5,1h-9C6.7,1,6,1.7,6,2.5V4H3.5C2.7,4,2,4.7,2,5.5v16C2,22.3,2.7,23,3.5,
23h17c0.8,0,1.5-0.7,1.5-1.5v-16C22,4.7,21.3,4,20.5,4z M9,4h6v1H9V4z M19,20H5V7h1.1c0.2,0.6,0.8,1,1.4,1h9c0.7,0,1.2-0.4,1.4-1H19
V20z M17,11c0,0.6-0.4,1-1,1H8c-0.6,0-1-0.4-1-1s0.4-1,1-1h8C16.6,10,17,10.4,17,11z M17,14c0,0.6-0.4,1-1,1H8c-0.6,0-1-0.4-1-1
s0.4-1,1-1h8C16.6,13,17,13.4,17,14z M13,17c0,0.6-0.4,1-1,1H8c-0.6,0-1-0.4-1-1s0.4-1,1-1h4C12.6,16,13,16.4,13,17z\"/>
</svg>
";
$__internal_8a1e1b1face85431e1754483103ef63ebb2a84f99900c06cfa705c4bd9fc1451->leave($__internal_8a1e1b1face85431e1754483103ef63ebb2a84f99900c06cfa705c4bd9fc1451_prof);
$__internal_34e3f3331a96cc4df7939f37fc4ce1638e8247437d051e95846261c08fd3d24c->leave($__internal_34e3f3331a96cc4df7939f37fc4ce1638e8247437d051e95846261c08fd3d24c_prof);
}
public function getTemplateName()
{
return "@WebProfiler/Icon/form.svg";
}
public function getDebugInfo()
{
return array ( 25 => 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("<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" enable-background=\"new 0 0 24 24\" xml:space=\"preserve\">
<path fill=\"#AAAAAA\" d=\"M20.5,4H18V2.5C18,1.7,17.3,1,16.5,1h-9C6.7,1,6,1.7,6,2.5V4H3.5C2.7,4,2,4.7,2,5.5v16C2,22.3,2.7,23,3.5,
23h17c0.8,0,1.5-0.7,1.5-1.5v-16C22,4.7,21.3,4,20.5,4z M9,4h6v1H9V4z M19,20H5V7h1.1c0.2,0.6,0.8,1,1.4,1h9c0.7,0,1.2-0.4,1.4-1H19
V20z M17,11c0,0.6-0.4,1-1,1H8c-0.6,0-1-0.4-1-1s0.4-1,1-1h8C16.6,10,17,10.4,17,11z M17,14c0,0.6-0.4,1-1,1H8c-0.6,0-1-0.4-1-1
s0.4-1,1-1h8C16.6,13,17,13.4,17,14z M13,17c0,0.6-0.4,1-1,1H8c-0.6,0-1-0.4-1-1s0.4-1,1-1h4C12.6,16,13,16.4,13,17z\"/>
</svg>
", "@WebProfiler/Icon/form.svg", "/var/www/clients/client1/web14/web/vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Icon/form.svg");
}
}

View File

@@ -0,0 +1,395 @@
<?php
/* @WebProfiler/Profiler/toolbar_js.html.twig */
class __TwigTemplate_efab482fa1a2c9de545dd493bc3b6e6794efe81df90896cbc3969eda2cca30f9 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
$__internal_fe8a8dc1a40b90fb99a976a612223324221f1ae264149f5c9ae9b186c3a9a613 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_fe8a8dc1a40b90fb99a976a612223324221f1ae264149f5c9ae9b186c3a9a613->enter($__internal_fe8a8dc1a40b90fb99a976a612223324221f1ae264149f5c9ae9b186c3a9a613_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_js.html.twig"));
$__internal_227da52f2bb58527758f6ceb3a06e60ee0def5ea6082c73f7c7125c36efb1fa1 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_227da52f2bb58527758f6ceb3a06e60ee0def5ea6082c73f7c7125c36efb1fa1->enter($__internal_227da52f2bb58527758f6ceb3a06e60ee0def5ea6082c73f7c7125c36efb1fa1_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/toolbar_js.html.twig"));
// line 1
echo "<div id=\"sfwdt";
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "\" class=\"sf-toolbar sf-display-none\"></div>
";
// line 2
echo twig_include($this->env, $context, "@WebProfiler/Profiler/base_js.html.twig");
echo "
<style";
// line 3
if (($context["csp_style_nonce"] ?? $this->getContext($context, "csp_style_nonce"))) {
echo " nonce=\"";
echo twig_escape_filter($this->env, ($context["csp_style_nonce"] ?? $this->getContext($context, "csp_style_nonce")), "html", null, true);
echo "\"";
}
echo ">
";
// line 4
echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar.css.twig", array("position" => ($context["position"] ?? $this->getContext($context, "position")), "floatable" => true));
echo "
</style>
<script";
// line 6
if (($context["csp_script_nonce"] ?? $this->getContext($context, "csp_script_nonce"))) {
echo " nonce=\"";
echo twig_escape_filter($this->env, ($context["csp_script_nonce"] ?? $this->getContext($context, "csp_script_nonce")), "html", null, true);
echo "\"";
}
echo ">/*<![CDATA[*/
(function () {
";
// line 8
if (("top" == ($context["position"] ?? $this->getContext($context, "position")))) {
// line 9
echo " var sfwdt = document.getElementById('sfwdt";
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "');
document.body.insertBefore(
document.body.removeChild(sfwdt),
document.body.firstChild
);
";
}
// line 15
echo "
Sfjs.load(
'sfwdt";
// line 17
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "',
'";
// line 18
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("_wdt", array("token" => ($context["token"] ?? $this->getContext($context, "token")))), "html", null, true);
echo "',
function(xhr, el) {
/* Evaluate embedded scripts inside the toolbar */
var i, scripts = [].slice.call(el.querySelectorAll('script'));
for (i = 0; i < scripts.length; ++i) {
eval(scripts[i].firstChild.nodeValue);
}
el.style.display = -1 !== xhr.responseText.indexOf('sf-toolbarreset') ? 'block' : 'none';
if (el.style.display == 'none') {
return;
}
if (Sfjs.getPreference('toolbar/displayState') == 'none') {
document.getElementById('sfToolbarMainContent-";
// line 35
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "').style.display = 'none';
document.getElementById('sfToolbarClearer-";
// line 36
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "').style.display = 'none';
document.getElementById('sfMiniToolbar-";
// line 37
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "').style.display = 'block';
} else {
document.getElementById('sfToolbarMainContent-";
// line 39
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "').style.display = 'block';
document.getElementById('sfToolbarClearer-";
// line 40
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "').style.display = 'block';
document.getElementById('sfMiniToolbar-";
// line 41
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "').style.display = 'none';
}
/* Handle toolbar-info position */
var toolbarBlocks = [].slice.call(el.querySelectorAll('.sf-toolbar-block'));
for (i = 0; i < toolbarBlocks.length; ++i) {
toolbarBlocks[i].onmouseover = function () {
var toolbarInfo = this.querySelectorAll('.sf-toolbar-info')[0];
var pageWidth = document.body.clientWidth;
var elementWidth = toolbarInfo.offsetWidth;
var leftValue = (elementWidth + this.offsetLeft) - pageWidth;
var rightValue = (elementWidth + (pageWidth - this.offsetLeft)) - pageWidth;
/* Reset right and left value, useful on window resize */
toolbarInfo.style.right = '';
toolbarInfo.style.left = '';
if (elementWidth > pageWidth) {
toolbarInfo.style.left = 0;
}
else if (leftValue > 0 && rightValue > 0) {
toolbarInfo.style.right = (rightValue * -1) + 'px';
} else if (leftValue < 0) {
toolbarInfo.style.left = 0;
} else {
toolbarInfo.style.right = '0px';
}
};
}
Sfjs.addEventListener(document.getElementById('sfToolbarHideButton-";
// line 70
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "'), 'click', function (event) {
event.preventDefault();
var p = this.parentNode;
p.style.display = 'none';
(p.previousElementSibling || p.previousSibling).style.display = 'none';
document.getElementById('sfMiniToolbar-";
// line 76
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "').style.display = 'block';
Sfjs.setPreference('toolbar/displayState', 'none');
});
Sfjs.addEventListener(document.getElementById('sfToolbarMiniToggler-";
// line 79
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "'), 'click', function (event) {
event.preventDefault();
var elem = this.parentNode;
if (elem.style.display == 'none') {
document.getElementById('sfToolbarMainContent-";
// line 84
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "').style.display = 'none';
document.getElementById('sfToolbarClearer-";
// line 85
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "').style.display = 'none';
elem.style.display = 'block';
} else {
document.getElementById('sfToolbarMainContent-";
// line 88
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "').style.display = 'block';
document.getElementById('sfToolbarClearer-";
// line 89
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "').style.display = 'block';
elem.style.display = 'none'
}
Sfjs.setPreference('toolbar/displayState', 'block');
});
Sfjs.renderAjaxRequests();
Sfjs.addEventListener(document.querySelector('.sf-toolbar-block-ajax > .sf-toolbar-icon'), 'click', function (event) {
event.preventDefault();
Sfjs.toggleClass(this.parentNode, 'hover');
});
var dumpInfo = document.querySelector('.sf-toolbar-block-dump .sf-toolbar-info');
if (null !== dumpInfo) {
Sfjs.addEventListener(dumpInfo, 'sfbeforedumpcollapse', function () {
dumpInfo.style.minHeight = dumpInfo.getBoundingClientRect().height+'px';
});
Sfjs.addEventListener(dumpInfo, 'mouseleave', function () {
dumpInfo.style.minHeight = '';
});
}
},
function(xhr) {
if (xhr.status !== 0) {
var sfwdt = document.getElementById('sfwdt";
// line 114
echo twig_escape_filter($this->env, ($context["token"] ?? $this->getContext($context, "token")), "html", null, true);
echo "');
sfwdt.innerHTML = '\\
<div class=\"sf-toolbarreset\">\\
<div class=\"sf-toolbar-icon\"><svg width=\"26\" height=\"28\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 26 28\" enable-background=\"new 0 0 26 28\" xml:space=\"preserve\"><path fill=\"#FFFFFF\" d=\"M13 0C5.8 0 0 5.8 0 13c0 7.2 5.8 13 13 13c7.2 0 13-5.8 13-13C26 5.8 20.2 0 13 0z M20 7.5 c-0.6 0-1-0.3-1-0.9c0-0.2 0-0.4 0.2-0.6c0.1-0.3 0.2-0.3 0.2-0.4c0-0.3-0.5-0.4-0.7-0.4c-2 0.1-2.5 2.7-2.9 4.8l-0.2 1.1 c1.1 0.2 1.9 0 2.4-0.3c0.6-0.4-0.2-0.8-0.1-1.3C18 9.2 18.4 9 18.7 8.9c0.5 0 0.8 0.5 0.8 1c0 0.8-1.1 2-3.3 1.9 c-0.3 0-0.5 0-0.7-0.1L15 14.1c-0.4 1.7-0.9 4.1-2.6 6.2c-1.5 1.8-3.1 2.1-3.8 2.1c-1.3 0-2.1-0.6-2.2-1.6c0-0.9 0.8-1.4 1.3-1.4 c0.7 0 1.2 0.5 1.2 1.1c0 0.5-0.2 0.6-0.4 0.7c-0.1 0.1-0.3 0.2-0.3 0.4c0 0.1 0.1 0.3 0.4 0.3c0.5 0 0.9-0.3 1.2-0.5 c1.3-1 1.7-2.9 2.4-6.2l0.1-0.8c0.2-1.1 0.5-2.3 0.8-3.5c-0.9-0.7-1.4-1.5-2.6-1.8c-0.8-0.2-1.3 0-1.7 0.4C8.4 10 8.6 10.7 9 11.1 l0.7 0.7c0.8 0.9 1.3 1.7 1.1 2.7c-0.3 1.6-2.1 2.8-4.3 2.1c-1.9-0.6-2.2-1.9-2-2.7c0.2-0.6 0.7-0.8 1.2-0.6 c0.5 0.2 0.7 0.8 0.6 1.3c0 0.1 0 0.1-0.1 0.3C6 15 5.9 15.2 5.9 15.3c-0.1 0.4 0.4 0.7 0.8 0.8c0.8 0.3 1.7-0.2 1.9-0.9 c0.2-0.6-0.2-1.1-0.4-1.2l-0.8-0.9c-0.4-0.4-1.2-1.5-0.8-2.8c0.2-0.5 0.5-1 0.9-1.4c1-0.7 2-0.8 3-0.6c1.3 0.4 1.9 1.2 2.8 1.9 c0.5-1.3 1.1-2.6 2-3.8c0.9-1 2-1.7 3.3-1.8C20 4.8 21 5.4 21 6.3C21 6.7 20.8 7.5 20 7.5z\"/></svg></div>\\
An error occurred while loading the web debug toolbar. <a href=\"";
// line 118
echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("_profiler", array("token" => ($context["token"] ?? $this->getContext($context, "token")))), "html", null, true);
echo "\">Open the web profiler.</a>\\
</div>\\
';
sfwdt.setAttribute('class', 'sf-toolbar sf-error-toolbar');
}
},
{ maxTries: 5 }
);
})();
/*]]>*/</script>
";
$__internal_fe8a8dc1a40b90fb99a976a612223324221f1ae264149f5c9ae9b186c3a9a613->leave($__internal_fe8a8dc1a40b90fb99a976a612223324221f1ae264149f5c9ae9b186c3a9a613_prof);
$__internal_227da52f2bb58527758f6ceb3a06e60ee0def5ea6082c73f7c7125c36efb1fa1->leave($__internal_227da52f2bb58527758f6ceb3a06e60ee0def5ea6082c73f7c7125c36efb1fa1_prof);
}
public function getTemplateName()
{
return "@WebProfiler/Profiler/toolbar_js.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 221 => 118, 214 => 114, 186 => 89, 182 => 88, 176 => 85, 172 => 84, 164 => 79, 158 => 76, 149 => 70, 117 => 41, 113 => 40, 109 => 39, 104 => 37, 100 => 36, 96 => 35, 76 => 18, 72 => 17, 68 => 15, 58 => 9, 56 => 8, 47 => 6, 42 => 4, 34 => 3, 30 => 2, 25 => 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("<div id=\"sfwdt{{ token }}\" class=\"sf-toolbar sf-display-none\"></div>
{{ include('@WebProfiler/Profiler/base_js.html.twig') }}
<style{% if csp_style_nonce %} nonce=\"{{ csp_style_nonce }}\"{% endif %}>
{{ include('@WebProfiler/Profiler/toolbar.css.twig', { 'position': position, 'floatable': true }) }}
</style>
<script{% if csp_script_nonce %} nonce=\"{{ csp_script_nonce }}\"{% endif %}>/*<![CDATA[*/
(function () {
{% if 'top' == position %}
var sfwdt = document.getElementById('sfwdt{{ token }}');
document.body.insertBefore(
document.body.removeChild(sfwdt),
document.body.firstChild
);
{% endif %}
Sfjs.load(
'sfwdt{{ token }}',
'{{ path(\"_wdt\", { \"token\": token }) }}',
function(xhr, el) {
/* Evaluate embedded scripts inside the toolbar */
var i, scripts = [].slice.call(el.querySelectorAll('script'));
for (i = 0; i < scripts.length; ++i) {
eval(scripts[i].firstChild.nodeValue);
}
el.style.display = -1 !== xhr.responseText.indexOf('sf-toolbarreset') ? 'block' : 'none';
if (el.style.display == 'none') {
return;
}
if (Sfjs.getPreference('toolbar/displayState') == 'none') {
document.getElementById('sfToolbarMainContent-{{ token }}').style.display = 'none';
document.getElementById('sfToolbarClearer-{{ token }}').style.display = 'none';
document.getElementById('sfMiniToolbar-{{ token }}').style.display = 'block';
} else {
document.getElementById('sfToolbarMainContent-{{ token }}').style.display = 'block';
document.getElementById('sfToolbarClearer-{{ token }}').style.display = 'block';
document.getElementById('sfMiniToolbar-{{ token }}').style.display = 'none';
}
/* Handle toolbar-info position */
var toolbarBlocks = [].slice.call(el.querySelectorAll('.sf-toolbar-block'));
for (i = 0; i < toolbarBlocks.length; ++i) {
toolbarBlocks[i].onmouseover = function () {
var toolbarInfo = this.querySelectorAll('.sf-toolbar-info')[0];
var pageWidth = document.body.clientWidth;
var elementWidth = toolbarInfo.offsetWidth;
var leftValue = (elementWidth + this.offsetLeft) - pageWidth;
var rightValue = (elementWidth + (pageWidth - this.offsetLeft)) - pageWidth;
/* Reset right and left value, useful on window resize */
toolbarInfo.style.right = '';
toolbarInfo.style.left = '';
if (elementWidth > pageWidth) {
toolbarInfo.style.left = 0;
}
else if (leftValue > 0 && rightValue > 0) {
toolbarInfo.style.right = (rightValue * -1) + 'px';
} else if (leftValue < 0) {
toolbarInfo.style.left = 0;
} else {
toolbarInfo.style.right = '0px';
}
};
}
Sfjs.addEventListener(document.getElementById('sfToolbarHideButton-{{ token }}'), 'click', function (event) {
event.preventDefault();
var p = this.parentNode;
p.style.display = 'none';
(p.previousElementSibling || p.previousSibling).style.display = 'none';
document.getElementById('sfMiniToolbar-{{ token }}').style.display = 'block';
Sfjs.setPreference('toolbar/displayState', 'none');
});
Sfjs.addEventListener(document.getElementById('sfToolbarMiniToggler-{{ token }}'), 'click', function (event) {
event.preventDefault();
var elem = this.parentNode;
if (elem.style.display == 'none') {
document.getElementById('sfToolbarMainContent-{{ token }}').style.display = 'none';
document.getElementById('sfToolbarClearer-{{ token }}').style.display = 'none';
elem.style.display = 'block';
} else {
document.getElementById('sfToolbarMainContent-{{ token }}').style.display = 'block';
document.getElementById('sfToolbarClearer-{{ token }}').style.display = 'block';
elem.style.display = 'none'
}
Sfjs.setPreference('toolbar/displayState', 'block');
});
Sfjs.renderAjaxRequests();
Sfjs.addEventListener(document.querySelector('.sf-toolbar-block-ajax > .sf-toolbar-icon'), 'click', function (event) {
event.preventDefault();
Sfjs.toggleClass(this.parentNode, 'hover');
});
var dumpInfo = document.querySelector('.sf-toolbar-block-dump .sf-toolbar-info');
if (null !== dumpInfo) {
Sfjs.addEventListener(dumpInfo, 'sfbeforedumpcollapse', function () {
dumpInfo.style.minHeight = dumpInfo.getBoundingClientRect().height+'px';
});
Sfjs.addEventListener(dumpInfo, 'mouseleave', function () {
dumpInfo.style.minHeight = '';
});
}
},
function(xhr) {
if (xhr.status !== 0) {
var sfwdt = document.getElementById('sfwdt{{ token }}');
sfwdt.innerHTML = '\\
<div class=\"sf-toolbarreset\">\\
<div class=\"sf-toolbar-icon\"><svg width=\"26\" height=\"28\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" x=\"0px\" y=\"0px\" viewBox=\"0 0 26 28\" enable-background=\"new 0 0 26 28\" xml:space=\"preserve\"><path fill=\"#FFFFFF\" d=\"M13 0C5.8 0 0 5.8 0 13c0 7.2 5.8 13 13 13c7.2 0 13-5.8 13-13C26 5.8 20.2 0 13 0z M20 7.5 c-0.6 0-1-0.3-1-0.9c0-0.2 0-0.4 0.2-0.6c0.1-0.3 0.2-0.3 0.2-0.4c0-0.3-0.5-0.4-0.7-0.4c-2 0.1-2.5 2.7-2.9 4.8l-0.2 1.1 c1.1 0.2 1.9 0 2.4-0.3c0.6-0.4-0.2-0.8-0.1-1.3C18 9.2 18.4 9 18.7 8.9c0.5 0 0.8 0.5 0.8 1c0 0.8-1.1 2-3.3 1.9 c-0.3 0-0.5 0-0.7-0.1L15 14.1c-0.4 1.7-0.9 4.1-2.6 6.2c-1.5 1.8-3.1 2.1-3.8 2.1c-1.3 0-2.1-0.6-2.2-1.6c0-0.9 0.8-1.4 1.3-1.4 c0.7 0 1.2 0.5 1.2 1.1c0 0.5-0.2 0.6-0.4 0.7c-0.1 0.1-0.3 0.2-0.3 0.4c0 0.1 0.1 0.3 0.4 0.3c0.5 0 0.9-0.3 1.2-0.5 c1.3-1 1.7-2.9 2.4-6.2l0.1-0.8c0.2-1.1 0.5-2.3 0.8-3.5c-0.9-0.7-1.4-1.5-2.6-1.8c-0.8-0.2-1.3 0-1.7 0.4C8.4 10 8.6 10.7 9 11.1 l0.7 0.7c0.8 0.9 1.3 1.7 1.1 2.7c-0.3 1.6-2.1 2.8-4.3 2.1c-1.9-0.6-2.2-1.9-2-2.7c0.2-0.6 0.7-0.8 1.2-0.6 c0.5 0.2 0.7 0.8 0.6 1.3c0 0.1 0 0.1-0.1 0.3C6 15 5.9 15.2 5.9 15.3c-0.1 0.4 0.4 0.7 0.8 0.8c0.8 0.3 1.7-0.2 1.9-0.9 c0.2-0.6-0.2-1.1-0.4-1.2l-0.8-0.9c-0.4-0.4-1.2-1.5-0.8-2.8c0.2-0.5 0.5-1 0.9-1.4c1-0.7 2-0.8 3-0.6c1.3 0.4 1.9 1.2 2.8 1.9 c0.5-1.3 1.1-2.6 2-3.8c0.9-1 2-1.7 3.3-1.8C20 4.8 21 5.4 21 6.3C21 6.7 20.8 7.5 20 7.5z\"/></svg></div>\\
An error occurred while loading the web debug toolbar. <a href=\"{{ path(\"_profiler\", { \"token\": token }) }}\">Open the web profiler.</a>\\
</div>\\
';
sfwdt.setAttribute('class', 'sf-toolbar sf-error-toolbar');
}
},
{ maxTries: 5 }
);
})();
/*]]>*/</script>
", "@WebProfiler/Profiler/toolbar_js.html.twig", "/var/www/clients/client1/web14/web/vendor/symfony/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_js.html.twig");
}
}

View File

@@ -0,0 +1,587 @@
<?php
/* @PrestaShop/Admin/WebProfiler/hooks_collector.html.twig */
class __TwigTemplate_628fc7a882f3b1e3bc9cdca410ec7ac179022111a85fb39f3f58df8b38b6b586 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 25
$this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@PrestaShop/Admin/WebProfiler/hooks_collector.html.twig", 25);
$this->blocks = array(
'toolbar' => array($this, 'block_toolbar'),
'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_9fd1a9f83cf87a0a35d9efabd301cdcac9438b006e309c4587fdca53d4c01948 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_9fd1a9f83cf87a0a35d9efabd301cdcac9438b006e309c4587fdca53d4c01948->enter($__internal_9fd1a9f83cf87a0a35d9efabd301cdcac9438b006e309c4587fdca53d4c01948_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/WebProfiler/hooks_collector.html.twig"));
$__internal_e6ebe8a44bee6a3853abb47a41050f96473b3d81d481ecb5aa4a98fb5669da44 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_e6ebe8a44bee6a3853abb47a41050f96473b3d81d481ecb5aa4a98fb5669da44->enter($__internal_e6ebe8a44bee6a3853abb47a41050f96473b3d81d481ecb5aa4a98fb5669da44_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@PrestaShop/Admin/WebProfiler/hooks_collector.html.twig"));
// line 27
$context["helper"] = $this;
// line 25
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_9fd1a9f83cf87a0a35d9efabd301cdcac9438b006e309c4587fdca53d4c01948->leave($__internal_9fd1a9f83cf87a0a35d9efabd301cdcac9438b006e309c4587fdca53d4c01948_prof);
$__internal_e6ebe8a44bee6a3853abb47a41050f96473b3d81d481ecb5aa4a98fb5669da44->leave($__internal_e6ebe8a44bee6a3853abb47a41050f96473b3d81d481ecb5aa4a98fb5669da44_prof);
}
// line 29
public function block_toolbar($context, array $blocks = array())
{
$__internal_74d624610b3c4adeed073044350a94ca95833526e4cbf005021ee9e3705393c1 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_74d624610b3c4adeed073044350a94ca95833526e4cbf005021ee9e3705393c1->enter($__internal_74d624610b3c4adeed073044350a94ca95833526e4cbf005021ee9e3705393c1_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "toolbar"));
$__internal_7bf6efa2c4cee940f0f805bccc66ca0a2fc5dfc556eed68deac1404eba89672e = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_7bf6efa2c4cee940f0f805bccc66ca0a2fc5dfc556eed68deac1404eba89672e->enter($__internal_7bf6efa2c4cee940f0f805bccc66ca0a2fc5dfc556eed68deac1404eba89672e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "toolbar"));
// line 30
echo " ";
ob_start();
// line 31
echo " ";
echo twig_include($this->env, $context, "@WebProfiler/Icon/event.svg");
echo "
<span class=\"sf-toolbar-value\">Hooks (";
// line 32
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calledHooks", array())), "html", null, true);
echo ")</span>
";
$context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
// line 34
echo "
";
// line 35
ob_start();
// line 36
echo " <div class=\"sf-toolbar-info-piece\">
<div class=\"sf-toolbar-info-piece\">
<b class=\"sf-toolbar-ajax-info\">";
// line 38
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calledHooks", array())), "html", null, true);
echo " Hooks called</b>
</div>
<div class=\"sf-toolbar-info-piece\">
<table class=\"sf-toolbar-ajax-requests\">
<thead>
<tr>
<th>Hook name</th>
<th>Call(s)</th>
</tr>
</thead>
<tbody class=\"sf-toolbar-ajax-request-list\">
";
// line 49
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calledHooks", array()));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["hookName"] => $context["hooks"]) {
// line 50
echo " <tr><td>";
echo twig_escape_filter($this->env, $context["hookName"], "html", null, true);
echo "</td><td>";
echo twig_escape_filter($this->env, twig_length_filter($this->env, $context["hooks"]), "html", null, true);
echo "</td></tr>
";
$context['_iterated'] = true;
}
if (!$context['_iterated']) {
// line 52
echo " <tr><td colspan=\"2\">No hook dispatched.</td></tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['hookName'], $context['hooks'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 54
echo " </tbody>
</table>
</div>
</div>
";
$context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
// line 59
echo "
";
// line 60
echo twig_include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", array("link" => true));
echo "
";
$__internal_7bf6efa2c4cee940f0f805bccc66ca0a2fc5dfc556eed68deac1404eba89672e->leave($__internal_7bf6efa2c4cee940f0f805bccc66ca0a2fc5dfc556eed68deac1404eba89672e_prof);
$__internal_74d624610b3c4adeed073044350a94ca95833526e4cbf005021ee9e3705393c1->leave($__internal_74d624610b3c4adeed073044350a94ca95833526e4cbf005021ee9e3705393c1_prof);
}
// line 64
public function block_menu($context, array $blocks = array())
{
$__internal_1e1e06bf0635edf2932bb6886972e3b5d0c7cc56699642650a35805c46a3b563 = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_1e1e06bf0635edf2932bb6886972e3b5d0c7cc56699642650a35805c46a3b563->enter($__internal_1e1e06bf0635edf2932bb6886972e3b5d0c7cc56699642650a35805c46a3b563_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "menu"));
$__internal_3424527550a9d30a2efa159dda117a135edc766581dce24536cd93400a8318a9 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_3424527550a9d30a2efa159dda117a135edc766581dce24536cd93400a8318a9->enter($__internal_3424527550a9d30a2efa159dda117a135edc766581dce24536cd93400a8318a9_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "menu"));
// line 65
echo " ";
// line 66
echo " <span class=\"label\">
<span class=\"icon\">";
// line 67
echo twig_include($this->env, $context, "@WebProfiler/Icon/event.svg");
echo "</span>
<strong>Hooks</strong>
</span>
";
$__internal_3424527550a9d30a2efa159dda117a135edc766581dce24536cd93400a8318a9->leave($__internal_3424527550a9d30a2efa159dda117a135edc766581dce24536cd93400a8318a9_prof);
$__internal_1e1e06bf0635edf2932bb6886972e3b5d0c7cc56699642650a35805c46a3b563->leave($__internal_1e1e06bf0635edf2932bb6886972e3b5d0c7cc56699642650a35805c46a3b563_prof);
}
// line 72
public function block_panel($context, array $blocks = array())
{
$__internal_dd192c9fec720e287af8f7685a513ec5a5d45857efb888a8cf278ff7f5a40d5b = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_dd192c9fec720e287af8f7685a513ec5a5d45857efb888a8cf278ff7f5a40d5b->enter($__internal_dd192c9fec720e287af8f7685a513ec5a5d45857efb888a8cf278ff7f5a40d5b_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
$__internal_478e5cc0b58b118073f2fddf6e5e7e09a62addd48c21a6cb9689ceaee26924d8 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_478e5cc0b58b118073f2fddf6e5e7e09a62addd48c21a6cb9689ceaee26924d8->enter($__internal_478e5cc0b58b118073f2fddf6e5e7e09a62addd48c21a6cb9689ceaee26924d8_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
// line 73
echo " <h2>Hooks</h2>
";
// line 75
if (twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "notCalledHooks", array()))) {
// line 76
echo " <div class=\"empty\">
<p>No Hooks have been recorded. Check that debugging is enabled in the kernel.</p>
</div>
";
} else {
// line 80
echo " <div class=\"sf-tabs\">
<div class=\"tab\">
<h3 class=\"tab-title\">Called Hooks <span class=\"badge\">";
// line 82
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calledHooks", array())), "html", null, true);
echo "</span></h3>
<div class=\"tab-content\">
";
// line 85
echo $context["helper"]->getrender_table($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "calledHooks", array()), true);
echo "
</div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Not Called Hooks <span class=\"badge\">";
// line 90
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "notCalledHooks", array())), "html", null, true);
echo "</span></h3>
<div class=\"tab-content\">
";
// line 92
if (twig_test_empty($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "notCalledHooks", array()))) {
// line 93
echo " <div class=\"empty\">
<p>
<strong>There are no uncalled hooks</strong>.
</p>
<p>
All hooks were called for this request or an error occurred
when trying to collect uncalled listeners (in which case check the
logs to get more information).
</p>
</div>
";
} else {
// line 104
echo " ";
echo $context["helper"]->getrender_table($this->getAttribute(($context["collector"] ?? $this->getContext($context, "collector")), "notCalledHooks", array()), false);
echo "
";
}
// line 106
echo " </div>
</div>
</div>
";
}
$__internal_478e5cc0b58b118073f2fddf6e5e7e09a62addd48c21a6cb9689ceaee26924d8->leave($__internal_478e5cc0b58b118073f2fddf6e5e7e09a62addd48c21a6cb9689ceaee26924d8_prof);
$__internal_dd192c9fec720e287af8f7685a513ec5a5d45857efb888a8cf278ff7f5a40d5b->leave($__internal_dd192c9fec720e287af8f7685a513ec5a5d45857efb888a8cf278ff7f5a40d5b_prof);
}
// line 112
public function getrender_table($__hookList__ = null, $__hookModules__ = null, ...$__varargs__)
{
$context = $this->env->mergeGlobals(array(
"hookList" => $__hookList__,
"hookModules" => $__hookModules__,
"varargs" => $__varargs__,
));
$blocks = array();
ob_start();
try {
$__internal_9ca652a4a6b8d5636f098d0b14fde9c0da7168bc4689f7fffdbe8b7ef16ec32c = $this->env->getExtension("Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension");
$__internal_9ca652a4a6b8d5636f098d0b14fde9c0da7168bc4689f7fffdbe8b7ef16ec32c->enter($__internal_9ca652a4a6b8d5636f098d0b14fde9c0da7168bc4689f7fffdbe8b7ef16ec32c_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "render_table"));
$__internal_8eb2173d03f4178d174844111846e4ee51dcc07acb668d2f1c9582919afacd80 = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
$__internal_8eb2173d03f4178d174844111846e4ee51dcc07acb668d2f1c9582919afacd80->enter($__internal_8eb2173d03f4178d174844111846e4ee51dcc07acb668d2f1c9582919afacd80_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "render_table"));
// line 113
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["hookList"] ?? $this->getContext($context, "hookList")));
foreach ($context['_seq'] as $context["hookName"] => $context["hooks"]) {
// line 114
echo " <h3>";
echo twig_escape_filter($this->env, $context["hookName"], "html", null, true);
echo "</h3>
<table>
<thead>
<tr>
<th>Arguments</th>
<th>Location</th>
";
// line 121
if (($context["hookModules"] ?? $this->getContext($context, "hookModules"))) {
// line 122
echo " <th>Hooked modules</th>
";
}
// line 124
echo " </tr>
</thead>
<tbody>
";
// line 127
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["hooks"]);
foreach ($context['_seq'] as $context["position"] => $context["hook"]) {
// line 128
echo " <tr>
<td>
";
// line 130
echo call_user_func_array($this->env->getFunction('profiler_dump')->getCallable(), array($this->env, $this->getAttribute($context["hook"], "args", array())));
echo "
</td>
<td>
<span class=\"text-muted\">";
// line 133
echo twig_escape_filter($this->env, $this->getAttribute($context["hook"], "location", array()), "html", null, true);
echo "</span>
</td>
";
// line 135
if (($context["hookModules"] ?? $this->getContext($context, "hookModules"))) {
// line 136
echo " <td>
";
// line 137
$context["modules"] = $this->getAttribute($context["hook"], "modules", array());
// line 138
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["modules"] ?? $this->getContext($context, "modules")));
foreach ($context['_seq'] as $context["moduleName"] => $context["module"]) {
// line 139
echo " <h4><b>";
echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $context["moduleName"]), "html", null, true);
echo "</b></h4>
<table>
<thead>
<tr>
<th>Module arguments</th>
</tr>
</thead>
";
// line 147
if ($this->getAttribute($context["module"], "callback", array(), "any", true, true)) {
// line 148
echo " <tr>
<td>";
// line 149
echo call_user_func_array($this->env->getFunction('profiler_dump')->getCallable(), array($this->env, $this->getAttribute($this->getAttribute($context["module"], "callback", array()), "args", array())));
echo "</td>
</tr>
";
} else {
// line 152
echo " <tr>
<td>";
// line 153
echo call_user_func_array($this->env->getFunction('profiler_dump')->getCallable(), array($this->env, $this->getAttribute($this->getAttribute($context["module"], "widget", array()), "args", array())));
echo "</td>
</tr>
";
}
// line 156
echo " </table>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['moduleName'], $context['module'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 158
echo " </td>
";
}
// line 160
echo " </tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['position'], $context['hook'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 162
echo " </tbody>
</table>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['hookName'], $context['hooks'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_8eb2173d03f4178d174844111846e4ee51dcc07acb668d2f1c9582919afacd80->leave($__internal_8eb2173d03f4178d174844111846e4ee51dcc07acb668d2f1c9582919afacd80_prof);
$__internal_9ca652a4a6b8d5636f098d0b14fde9c0da7168bc4689f7fffdbe8b7ef16ec32c->leave($__internal_9ca652a4a6b8d5636f098d0b14fde9c0da7168bc4689f7fffdbe8b7ef16ec32c_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 "@PrestaShop/Admin/WebProfiler/hooks_collector.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 369 => 162, 362 => 160, 358 => 158, 351 => 156, 345 => 153, 342 => 152, 336 => 149, 333 => 148, 331 => 147, 319 => 139, 314 => 138, 312 => 137, 309 => 136, 307 => 135, 302 => 133, 296 => 130, 292 => 128, 288 => 127, 283 => 124, 279 => 122, 277 => 121, 266 => 114, 261 => 113, 242 => 112, 228 => 106, 222 => 104, 209 => 93, 207 => 92, 202 => 90, 194 => 85, 188 => 82, 184 => 80, 178 => 76, 176 => 75, 172 => 73, 163 => 72, 149 => 67, 146 => 66, 144 => 65, 135 => 64, 122 => 60, 119 => 59, 112 => 54, 105 => 52, 95 => 50, 90 => 49, 76 => 38, 72 => 36, 70 => 35, 67 => 34, 62 => 32, 57 => 31, 54 => 30, 45 => 29, 35 => 25, 33 => 27, 11 => 25,);
}
/** @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("{#**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*#}
{% extends '@WebProfiler/Profiler/layout.html.twig' %}
{% import _self as helper %}
{% block toolbar %}
{% set icon %}
{{ include('@WebProfiler/Icon/event.svg') }}
<span class=\"sf-toolbar-value\">Hooks ({{ collector.calledHooks|length }})</span>
{% endset %}
{% set text %}
<div class=\"sf-toolbar-info-piece\">
<div class=\"sf-toolbar-info-piece\">
<b class=\"sf-toolbar-ajax-info\">{{ collector.calledHooks|length }} Hooks called</b>
</div>
<div class=\"sf-toolbar-info-piece\">
<table class=\"sf-toolbar-ajax-requests\">
<thead>
<tr>
<th>Hook name</th>
<th>Call(s)</th>
</tr>
</thead>
<tbody class=\"sf-toolbar-ajax-request-list\">
{% for hookName, hooks in collector.calledHooks %}
<tr><td>{{ hookName }}</td><td>{{ hooks|length }}</td></tr>
{% else %}
<tr><td colspan=\"2\">No hook dispatched.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endset %}
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: true }) }}
{% endblock %}
{% block menu %}
{# This left-hand menu appears when using the full-screen profiler. #}
<span class=\"label\">
<span class=\"icon\">{{ include('@WebProfiler/Icon/event.svg') }}</span>
<strong>Hooks</strong>
</span>
{% endblock %}
{% block panel %}
<h2>Hooks</h2>
{% if collector.notCalledHooks is empty %}
<div class=\"empty\">
<p>No Hooks have been recorded. Check that debugging is enabled in the kernel.</p>
</div>
{% else %}
<div class=\"sf-tabs\">
<div class=\"tab\">
<h3 class=\"tab-title\">Called Hooks <span class=\"badge\">{{ collector.calledHooks|length }}</span></h3>
<div class=\"tab-content\">
{{ helper.render_table(collector.calledHooks, true) }}
</div>
</div>
<div class=\"tab\">
<h3 class=\"tab-title\">Not Called Hooks <span class=\"badge\">{{ collector.notCalledHooks|length }}</span></h3>
<div class=\"tab-content\">
{% if collector.notCalledHooks is empty %}
<div class=\"empty\">
<p>
<strong>There are no uncalled hooks</strong>.
</p>
<p>
All hooks were called for this request or an error occurred
when trying to collect uncalled listeners (in which case check the
logs to get more information).
</p>
</div>
{% else %}
{{ helper.render_table(collector.notCalledHooks, false) }}
{% endif %}
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% macro render_table(hookList, hookModules) %}
{% for hookName, hooks in hookList %}
<h3>{{ hookName }}</h3>
<table>
<thead>
<tr>
<th>Arguments</th>
<th>Location</th>
{% if hookModules %}
<th>Hooked modules</th>
{% endif %}
</tr>
</thead>
<tbody>
{% for position, hook in hooks %}
<tr>
<td>
{{ profiler_dump(hook.args) }}
</td>
<td>
<span class=\"text-muted\">{{ hook.location }}</span>
</td>
{% if hookModules %}
<td>
{% set modules = hook.modules %}
{% for moduleName, module in modules %}
<h4><b>{{ moduleName|capitalize }}</b></h4>
<table>
<thead>
<tr>
<th>Module arguments</th>
</tr>
</thead>
{% if module.callback is defined %}
<tr>
<td>{{ profiler_dump(module.callback.args) }}</td>
</tr>
{% else %}
<tr>
<td>{{ profiler_dump(module.widget.args) }}</td>
</tr>
{% endif %}
</table>
{% endfor %}
</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
{% endmacro %}
", "@PrestaShop/Admin/WebProfiler/hooks_collector.html.twig", "/var/www/clients/client1/web14/web/src/PrestaShopBundle/Resources/views/Admin/WebProfiler/hooks_collector.html.twig");
}
}

File diff suppressed because it is too large Load Diff