[TwigBundle] removed undefined argument

This commit is contained in:
Fabien Potencier 2014-04-12 18:24:05 +02:00
parent f50b2c59d5
commit 8aa322ca72
2 changed files with 2 additions and 5 deletions

View File

@ -12,7 +12,6 @@
namespace Symfony\Bundle\TwigBundle\Debug;
use Symfony\Bundle\TwigBundle\TwigEngine;
use Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables;
use Symfony\Component\Templating\TemplateNameParserInterface;
use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Component\Config\FileLocatorInterface;
@ -33,11 +32,10 @@ class TimedTwigEngine extends TwigEngine
* @param TemplateNameParserInterface $parser A TemplateNameParserInterface instance
* @param FileLocatorInterface $locator A FileLocatorInterface instance
* @param Stopwatch $stopwatch A Stopwatch instance
* @param GlobalVariables $globals A GlobalVariables instance
*/
public function __construct(\Twig_Environment $environment, TemplateNameParserInterface $parser, FileLocatorInterface $locator, Stopwatch $stopwatch, GlobalVariables $globals = null)
public function __construct(\Twig_Environment $environment, TemplateNameParserInterface $parser, FileLocatorInterface $locator, Stopwatch $stopwatch)
{
parent::__construct($environment, $parser, $locator, $globals);
parent::__construct($environment, $parser, $locator);
$this->stopwatch = $stopwatch;
}

View File

@ -14,7 +14,6 @@
<argument type="service" id="templating.name_parser" />
<argument type="service" id="templating.locator" />
<argument type="service" id="debug.stopwatch" />
<argument type="service" id="templating.globals" />
</service>
<service id="twig.extension.debug" class="Twig_Extension_Debug" public="false">