[TwigBundle] removed undefined argument
This commit is contained in:
parent
f50b2c59d5
commit
8aa322ca72
@ -12,7 +12,6 @@
|
|||||||
namespace Symfony\Bundle\TwigBundle\Debug;
|
namespace Symfony\Bundle\TwigBundle\Debug;
|
||||||
|
|
||||||
use Symfony\Bundle\TwigBundle\TwigEngine;
|
use Symfony\Bundle\TwigBundle\TwigEngine;
|
||||||
use Symfony\Bundle\FrameworkBundle\Templating\GlobalVariables;
|
|
||||||
use Symfony\Component\Templating\TemplateNameParserInterface;
|
use Symfony\Component\Templating\TemplateNameParserInterface;
|
||||||
use Symfony\Component\Stopwatch\Stopwatch;
|
use Symfony\Component\Stopwatch\Stopwatch;
|
||||||
use Symfony\Component\Config\FileLocatorInterface;
|
use Symfony\Component\Config\FileLocatorInterface;
|
||||||
@ -33,11 +32,10 @@ class TimedTwigEngine extends TwigEngine
|
|||||||
* @param TemplateNameParserInterface $parser A TemplateNameParserInterface instance
|
* @param TemplateNameParserInterface $parser A TemplateNameParserInterface instance
|
||||||
* @param FileLocatorInterface $locator A FileLocatorInterface instance
|
* @param FileLocatorInterface $locator A FileLocatorInterface instance
|
||||||
* @param Stopwatch $stopwatch A Stopwatch 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;
|
$this->stopwatch = $stopwatch;
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
<argument type="service" id="templating.name_parser" />
|
<argument type="service" id="templating.name_parser" />
|
||||||
<argument type="service" id="templating.locator" />
|
<argument type="service" id="templating.locator" />
|
||||||
<argument type="service" id="debug.stopwatch" />
|
<argument type="service" id="debug.stopwatch" />
|
||||||
<argument type="service" id="templating.globals" />
|
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<service id="twig.extension.debug" class="Twig_Extension_Debug" public="false">
|
<service id="twig.extension.debug" class="Twig_Extension_Debug" public="false">
|
||||||
|
Reference in New Issue
Block a user