public function loadYmlFile($fileName, $path)
    {
        $configDirectories = array(($path!=null)?$path:$this->rootDir);

        $locator = new FileLocator($configDirectories);
        $ymlFile = $locator->locate($fileName, null, true);
        $ymlDatas = Yaml::parse($ymlFile);

        $dataArray = array();
        foreach ($ymlDatas as $key => $data) {
            $dataArray[$key] = array_merge(
                $data);
        }

        return $dataArray;
    }
public function loadYmlFile($fileName, $path)
    {
        $configDirectories = array(($path!=null)?$path:$this->rootDir);

        $locator = new FileLocator($configDirectories);
        $ymlFile = $locator->locate($fileName, null, true);
        $ymlDatas = Yaml::parse($ymlFile);

        $dataArray = array();
        foreach ($ymlDatas as $key => $data) {
            $dataArray[$key] = array_merge(
                $data);
        }

        return $dataArray;
    }
public function loadYmlFile ( $ fileName , $ path ) { $ configDirectories = array ( ( $ path != null ) ? $ path : $ this -> rootDir ) ; $ locator = new FileLocator ( $ configDirectories ) ; $ ymlFile = $ locator -> locate ( $ fileName , null , true ) ; $ ymlDatas = Yaml :: parse ( $ ymlFile ) ; $ dataArray = array ( ) ; foreach ( $ ymlDatas as $ key => $ data ) { $ dataArray [ $ key ] = array_merge ( $ data ) ; } return $ dataArray ; }
Load a yml file and return an array of the data ordered by keys
@param string $fileName
@param string $path (full path to search in)
@return array
Load a yml file and return an array of the data ordered by keys