code: public function load($name)
      {
          foreach ($this->sourceDirs as $dir) {
              
              if (0 === strpos($name, DIRECTORY_SEPARATOR)) {
                  $yamlFile = $name;
              } else {
                  $yamlFile = $dir . '/' . $name;
              }
              
              if (false === strstr($yamlFile, self::EXT_YML)) {
                  $yamlFile .= self::EXT_YML;
              }
              
              if (is_file($yamlFile)) {
                  return new ArrayCollection(Yaml::parse($yamlFile));
              }
          }
          
          throw new \Exception(sprintf('No Yaml file found for {%s}', $name));
      }
docs: Searches source paths for the specified YAML file and parses its contents.
  @return ArrayCollection