public static function getInstance($configFile='config.yml')
    {
        static $instance = null;
        if (null === $instance) {
            $instance = new static();
        }

        $configuration = Yaml::parse(file_get_contents($configFile));
        $instance->setParams($configuration);

        return $instance;
    }
public static function getInstance($configFile='config.yml')
    {
        static $instance = null;
        if (null === $instance) {
            $instance = new static();
        }

        $configuration = Yaml::parse(file_get_contents($configFile));
        $instance->setParams($configuration);

        return $instance;
    }
public static function getInstance ( $ configFile = 'config.yml' ) { static $ instance = null ; if ( null === $ instance ) { $ instance = new static ( ) ; } $ configuration = Yaml :: parse ( file_get_contents ( $ configFile ) ) ; $ instance -> setParams ( $ configuration ) ; return $ instance ; }
Config singleton.
@param string $configFile The yaml config file relative to project root.
@return Config The *Singleton* instance.
Config singleton .