src/fwidm/dwdHourlyCrawler/DWDConfiguration.php
public static function getConfiguration()
    {
        if (self::$configuration === null && file_exists(self::$configFilePath)) {
//            $jsonConfig = file_get_contents(self::$configFilePath_depr);
//            self::$configuration = json_decode($jsonConfig);

            $settings = include __DIR__ . '/../../config/configuration.php';

            self::$configuration = DWDUtil::array_to_object($settings);

            if (DWDConfiguration::$configuration === null)
                throw new ParseError('Error, configuration file could not be found or contains invalid lines.');
        }
        return DWDConfiguration::$configuration;

    }
public static function getConfiguration()
    {
        if (self::$configuration === null && file_exists(self::$configFilePath)) {
//            $jsonConfig = file_get_contents(self::$configFilePath_depr);
//            self::$configuration = json_decode($jsonConfig);

            $settings = include __DIR__ . '/../../config/configuration.php';

            self::$configuration = DWDUtil::array_to_object($settings);

            if (DWDConfiguration::$configuration === null)
                throw new ParseError('Error, configuration file could not be found or contains invalid lines.');
        }
        return DWDConfiguration::$configuration;

    }
public static function getConfiguration ( ) { if ( self :: $ configuration === null && file_exists ( self :: $ configFilePath ) ) { //            $jsonConfig = file_get_contents(self::$configFilePath_depr); //            self::$configuration = json_decode($jsonConfig); $ settings = include __DIR__ . '/../../config/configuration.php' ; self :: $ configuration = DWDUtil :: array_to_object ( $ settings ) ; if ( DWDConfiguration :: $ configuration === null ) throw new ParseError ( 'Error, configuration file could not be found or contains invalid lines.' ) ; } return DWDConfiguration :: $ configuration ; }
Returns the complete configuration file to the callee
@return mixed
Returns the complete configuration file to the callee