/** * Constructor. * * @param Loader $loader A Loader instance * @param string $dir The directory where to store the cache files */ public function __construct(Loader $loader, $dir) { parent::__construct($loader->getTemplateNameParser()); $this->loader = $loader; $this->dir = $dir; }