protected function loadConfigurationFile($configurationFile)
    {
        if (!file_exists($configurationFile)) {
            throw new Exception('The configuration yml file '.$configurationFile.' was not found');
        }
        $configuration = Yaml::parse(file_get_contents($configurationFile));

        if (empty($configuration['jk_assets']['tasks'])) {
            throw new Exception('Tasks not found in configuration file '.$configurationFile);
        }

        return $configuration['jk_assets']['tasks'];
    }
protected function loadConfigurationFile($configurationFile)
    {
        if (!file_exists($configurationFile)) {
            throw new Exception('The configuration yml file '.$configurationFile.' was not found');
        }
        $configuration = Yaml::parse(file_get_contents($configurationFile));

        if (empty($configuration['jk_assets']['tasks'])) {
            throw new Exception('Tasks not found in configuration file '.$configurationFile);
        }

        return $configuration['jk_assets']['tasks'];
    }
protected function loadConfigurationFile ( $ configurationFile ) { if ( ! file_exists ( $ configurationFile ) ) { throw new Exception ( 'The configuration yml file ' . $ configurationFile . ' was not found' ) ; } $ configuration = Yaml :: parse ( file_get_contents ( $ configurationFile ) ) ; if ( empty ( $ configuration [ 'jk_assets' ] [ 'tasks' ] ) ) { throw new Exception ( 'Tasks not found in configuration file ' . $ configurationFile ) ; } return $ configuration [ 'jk_assets' ] [ 'tasks' ] ; }
Load the configuration from a yml file.

@param $configurationFile

@return string[]

@throws Exception
Load the configuration from a yml file .