示例#1
0
 protected function getFilesAsArray(array $files)
 {
     $yamls = array();
     foreach ($files as $file) {
         $path = $this->getAbsolutePath($file);
         if (!file_exists($path)) {
             throw new \InvalidArgumentException(sprintf('The service file "%s" does not exist (in: %s).', $file, implode(', ', $this->paths)));
         }
         $yamls[$path] = $this->validate(YAML::load($path), $path);
     }
     return $yamls;
 }
 protected function loadFile($file)
 {
     return $this->validate(YAML::load($file), $file);
 }
 protected function loadFile($file)
 {
     return YAML::load($file);
 }