protected function readConfiguration($actualDir)
    {
        $finder = new Finder();
        $finder->files()->in($actualDir)->name('*.yml');

        if (iterator_count($finder) < 1) {
            throw new \Exception('The configuration (.yml) file is missing.');
        }

        $files = iterator_to_array($finder);
        $file = current($files);

        $config = Yaml::parse($file->getContents());

        return $config;
    }
protected function readConfiguration($actualDir)
    {
        $finder = new Finder();
        $finder->files()->in($actualDir)->name('*.yml');

        if (iterator_count($finder) < 1) {
            throw new \Exception('The configuration (.yml) file is missing.');
        }

        $files = iterator_to_array($finder);
        $file = current($files);

        $config = Yaml::parse($file->getContents());

        return $config;
    }
protected function readConfiguration ( $ actualDir ) { $ finder = new Finder ( ) ; $ finder -> files ( ) -> in ( $ actualDir ) -> name ( '*.yml' ) ; if ( iterator_count ( $ finder ) < 1 ) { throw new \ Exception ( 'The configuration (.yml) file is missing.' ) ; } $ files = iterator_to_array ( $ finder ) ; $ file = current ( $ files ) ; $ config = Yaml :: parse ( $ file -> getContents ( ) ) ; return $ config ; }
Return an array from the configuration yml file.

@param string $actualDir

@return array
Return an array from the configuration yml file .