/** * Process compiled source using Stempler post-processors. * * @param string $source * @param string $path * @param string $compiledFilename * @return string */ protected function processSource($source, $path, $compiledFilename = null) { foreach ($this->getProcessors() as $processor) { $benchmark = $this->benchmark('process', get_class($processor) . '-{' . $path); try { $source = $processor->process($source, $this->loader->viewNamespace($path), $this->loader->viewName($path), $compiledFilename); } finally { $this->benchmark($benchmark); } } return $source; }
/** * {@inheritdoc} */ public function get($path) { return new NativeView($this->loader->localFilename($path), $this->loader->viewNamespace($path), $this->loader->viewName($path), $this->container); }
/** * {@inheritdoc} */ public function viewNamespace($path) { return $this->loader->viewNamespace($path); }