/** * Constructor. * * @param object An optional KConfig object with configuration options */ public function __construct(KConfig $config) { parent::__construct($config); if ($config->cache) { $this->_paths = $this->getService('application.registry', array('key' => 'template-paths-' . $config->cache_key)); $this->_parsed_data = $this->getService('application.registry', array('key' => 'template-parsed-data-' . $config->cache_key)); } }