parent = array(); $this->blocks = array( 'toolbar' => array($this, 'block_toolbar'), 'menu' => array($this, 'block_menu'), 'panel' => array($this, 'block_panel'), ); } public function getParent(array $context) { $parent = "WebProfilerBundle:Profiler:layout.html.twig"; if ($parent instanceof Twig_Template) { $name = $parent->getTemplateName(); $this->parent[$name] = $parent; $parent = $name; } elseif (!isset($this->parent[$parent])) { $this->parent[$parent] = $this->env->loadTemplate($parent); } return $this->parent[$parent]; } protected function doDisplay(array $context, array $blocks = array()) { $context = array_merge($this->env->getGlobals(), $context); $this->getParent($context)->display($context, array_merge($this->blocks, $blocks)); } // line 3 public function block_toolbar($context, array $blocks = array()) { // line 4 echo " "; ob_start(); // line 5 echo " \"Request\" "; $context['icon'] = new Twig_Markup(ob_get_clean()); // line 7 echo " "; ob_start(); // line 8 echo " "; ob_start(); // line 9 echo " "; if ($this->getAttribute((($this->getAttribute(((array_key_exists("collector", $context)) ? (twig_default_filter($this->getContext($context, 'collector'))) : ("")), "controller", array(), "any", true)) ? (twig_default_filter($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false))) : ("")), "class", array(), "any", true)) { // line 10 echo " "; echo $this->env->getExtension('code')->abbrClass($this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "class", array(), "any", false)); echo " :: "; // line 12 $context['link'] = $this->env->getExtension('code')->getFileLink($this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "file", array(), "any", false), $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "line", array(), "any", false)); // line 13 echo " "; if ($this->getContext($context, 'link')) { echo "env, $this->getContext($context, 'link'), "html"); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "method", array(), "any", false), "html"); echo ""; } else { echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "method", array(), "any", false), "html"); } echo " "; } else { // line 15 echo " "; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "controller", array(), "any", false), "html"); echo " "; } // line 17 echo " | getAttribute($this->getContext($context, 'collector'), "route", array(), "any", false))) ? (" style=\"color:#a33\"") : ("")); echo ">"; echo twig_escape_filter($this->env, (($this->getAttribute($this->getContext($context, 'collector'), "route", array(), "any", false)) ? ($this->getAttribute($this->getContext($context, 'collector'), "route", array(), "any", false)) : ("NONE")), "html"); echo " | getAttribute($this->getContext($context, 'collector'), "statuscode", array(), "any", false))) ? ("#759e1a") : ("#a33")); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "statuscode", array(), "any", false), "html"); echo " "; echo trim(preg_replace('/>\s+<', ob_get_clean())); // line 22 echo " "; $context['text'] = new Twig_Markup(ob_get_clean()); // line 23 echo " "; $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => $this->getContext($context, 'profiler_url')))); } // line 26 public function block_menu($context, array $blocks = array()) { // line 27 echo " env, $this->env->getExtension('assets')->getAssetUrl("bundles/webprofiler/images/profiler/request.png"), "html"); echo "\" alt=\"Request\" /> Request "; } // line 33 public function block_panel($context, array $blocks = array()) { // line 34 echo "

Request GET Parameters

"; // line 36 if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "requestquery", array(), "any", false), "all", array(), "any", false))) { // line 37 echo " "; $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestquery", array(), "any", false))); // line 38 echo " "; } else { // line 39 echo "

No GET parameters

"; } // line 43 echo "

Request POST Parameters

"; // line 46 if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "requestrequest", array(), "any", false), "all", array(), "any", false))) { // line 47 echo " "; $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestrequest", array(), "any", false))); // line 48 echo " "; } else { // line 49 echo "

No POST parameters

"; } // line 53 echo "

Request Attributes

"; // line 56 if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "requestattributes", array(), "any", false), "all", array(), "any", false))) { // line 57 echo " "; $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestattributes", array(), "any", false))); // line 58 echo " "; } else { // line 59 echo "

No attributes

"; } // line 63 echo "

Request Cookies

"; // line 66 if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'collector'), "requestcookies", array(), "any", false), "all", array(), "any", false))) { // line 67 echo " "; $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestcookies", array(), "any", false))); // line 68 echo " "; } else { // line 69 echo "

No cookies

"; } // line 73 echo "

Request Headers

"; // line 76 $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestheaders", array(), "any", false))); // line 77 echo "

Request Content

"; // line 81 if (($this->getAttribute($this->getContext($context, 'collector'), "content", array(), "any", false) == false)) { // line 82 echo " Request content not available (it was retrieved as a resource). "; } elseif ($this->getAttribute($this->getContext($context, 'collector'), "content", array(), "any", false)) { // line 84 echo "

";
            echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "content", array(), "any", false), "html");
            echo "
"; } else { // line 86 echo " No content "; } // line 88 echo "

Request Server Parameters

"; // line 92 $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "requestserver", array(), "any", false))); // line 93 echo "

Response Headers

"; // line 96 $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getContext($context, 'collector'), "responseheaders", array(), "any", false))); // line 97 echo "

Session Attributes

"; // line 100 if (twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'collector'), "sessionattributes", array(), "any", false))) { // line 101 echo " "; // line 106 $context['attributes'] = $this->getAttribute($this->getContext($context, 'collector'), "sessionattributes", array(), "any", false); // line 107 echo " "; $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable(twig_sort_filter(twig_get_array_keys_filter($this->getContext($context, 'attributes')))); foreach ($context['_seq'] as $context['_key'] => $context['key']) { // line 108 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); // line 113 echo "
Key Value
"; // line 109 echo twig_escape_filter($this->env, $this->getContext($context, 'key'), "html"); echo " "; // line 110 echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->dump($this->getAttribute($this->getContext($context, 'attributes'), $this->getContext($context, 'key'), array(), "array", false)), "html"); echo "
"; } else { // line 115 echo "

No session attributes

"; } // line 119 echo " "; // line 121 if ($this->getAttribute($this->getContext($context, 'profile'), "parent", array(), "any", false)) { // line 122 echo "

env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => $this->getAttribute($this->getAttribute($this->getContext($context, 'profile'), "parent", array(), "any", false), "token", array(), "any", false))), "html"); echo "\">Parent request: "; echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, 'profile'), "parent", array(), "any", false), "token", array(), "any", false), "html"); echo "

"; // line 124 $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, 'profile'), "parent", array(), "any", false), "getcollector", array("request", ), "method", false), "requestattributes", array(), "any", false))); // line 125 echo " "; } // line 126 echo " "; // line 127 if (twig_length_filter($this->env, $this->getAttribute($this->getContext($context, 'profile'), "children", array(), "any", false))) { // line 128 echo "

Sub requests

"; // line 130 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, 'profile'), "children", array(), "any", false)); foreach ($context['_seq'] as $context['_key'] => $context['child']) { // line 131 echo "

env, $this->env->getExtension('routing')->getPath("_profiler", array("token" => $this->getAttribute($this->getContext($context, 'child'), "token", array(), "any", false))), "html"); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'child'), "token", array(), "any", false), "html"); echo "

"; // line 132 $this->env->loadTemplate("WebProfilerBundle:Profiler:bag.html.twig")->display(array("bag" => $this->getAttribute($this->getAttribute($this->getContext($context, 'child'), "getcollector", array("request", ), "method", false), "requestattributes", array(), "any", false))); // line 133 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']); $context = array_merge($_parent, array_intersect_key($context, $_parent)); // line 134 echo " "; } // line 135 echo " "; } public function getTemplateName() { return "WebProfilerBundle:Collector:request.html.twig"; } public function isTraitable() { return false; } }