This commit is contained in:
Fabien Potencier 2012-03-02 21:43:08 +01:00
parent cda5ffaeeb
commit ab75727f43
3 changed files with 3 additions and 2 deletions

View File

@ -44,7 +44,7 @@ class RouterController extends ContainerAware
$context = $router->getContext();
$context->setMethod($profile->getMethod());
$matcher = new TraceableUrlMatcher($router->getRouteCollection(), $context);
$request = $profile->getCollector('request');
return $this->container->get('templating')->renderResponse('WebProfilerBundle:Router:panel.html.twig', array(

View File

@ -230,7 +230,7 @@ class ParameterBag
public function getDigits($key, $default = '', $deep = false)
{
// we need to remove - and + because they're allowed in the filter
return str_replace(array('-','+'),'', $this->filter($key, $default, $deep, FILTER_SANITIZE_NUMBER_INT));
return str_replace(array('-', '+'), '', $this->filter($key, $default, $deep, FILTER_SANITIZE_NUMBER_INT));
}
/**

View File

@ -83,6 +83,7 @@ abstract class BaseMemcacheProfilerStorage implements ProfilerStorageInterface
if ($a['time'] === $b['time']) {
return 0;
}
return $a['time'] > $b['time'] ? -1 : 1;
});