Fixes #2817: ensure that the base loader is correctly initialised

This commit is contained in:
Jonathan Ingram 2011-12-13 08:44:35 +11:00
parent eedd856f6d
commit 7827f72cf4

View File

@ -33,6 +33,8 @@ class FilesystemLoader extends \Twig_Loader_Filesystem
*/
public function __construct(FileLocatorInterface $locator, TemplateNameParserInterface $parser)
{
parent::__construct(array());
$this->locator = $locator;
$this->parser = $parser;
$this->cache = array();