コード例 #1
0
 /**
  * {@inheritdoc}
  */
 protected function load($name)
 {
     $template = $this->nameParser->parse($name);
     if (!file_exists($path = $template->getPath())) {
         throw new InvalidArgumentException(sprintf('The template "%s" does not exist.', $name));
     }
     return parent::load($path);
 }