/** * {@inheritdoc} */ public function getSource($path) { $source = $this->loader->getSource($path); foreach ($this->modifiers as $modifier) { $benchmark = $this->benchmark('modify', $path . '@' . get_class($modifier)); try { $source = $modifier->modify($source, $this->viewNamespace($path), $this->viewName($path)); } finally { $this->benchmark($benchmark); } } return $source; }