[WebProfilerBundle] Fix the intercept_redirects option

This commit is contained in:
Victor Berchet 2011-03-31 13:05:20 +02:00
parent ac03440d7a
commit 5e141402e1
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class Configuration
->children()
->booleanNode('verbose')->defaultTrue()->end()
->booleanNode('toolbar')->defaultFalse()->end()
->scalarNode('intercept_redirects')->defaultFalse()->end()
->booleanNode('intercept_redirects')->defaultFalse()->end()
->end()
;

View File

@ -37,7 +37,7 @@ class WebDebugToolbarListener
public function __construct(TwigEngine $templating, $interceptRedirects = false, $verbose = true)
{
$this->templating = $templating;
$this->interceptRedirects = $interceptRedirects;
$this->interceptRedirects = (Boolean) $interceptRedirects;
$this->verbose = (Boolean) $verbose;
}