public function init()
    {
        // feature detection
        $this->hasReadline = \function_exists('readline');
        $this->hasPcntl    = \function_exists('pcntl_signal') && \function_exists('posix_getpid');

        if ($configFile = $this->getConfigFile()) {
            $this->loadConfigFile($configFile);
        }

        if (!$this->configFile && $localConfig = $this->getLocalConfigFile()) {
            $this->loadConfigFile($localConfig);
        }
    }
public function init()
    {
        // feature detection
        $this->hasReadline = \function_exists('readline');
        $this->hasPcntl    = \function_exists('pcntl_signal') && \function_exists('posix_getpid');

        if ($configFile = $this->getConfigFile()) {
            $this->loadConfigFile($configFile);
        }

        if (!$this->configFile && $localConfig = $this->getLocalConfigFile()) {
            $this->loadConfigFile($localConfig);
        }
    }
public function init ( ) { // feature detection $ this -> hasReadline = \ function_exists ( 'readline' ) ; $ this -> hasPcntl = \ function_exists ( 'pcntl_signal' ) && \ function_exists ( 'posix_getpid' ) ; if ( $ configFile = $ this -> getConfigFile ( ) ) { $ this -> loadConfigFile ( $ configFile ) ; } if ( ! $ this -> configFile && $ localConfig = $ this -> getLocalConfigFile ( ) ) { $ this -> loadConfigFile ( $ localConfig ) ; } }
Initialize the configuration.

This checks for the presence of Readline and Pcntl extensions.

If a config file is available, it will be loaded and merged with the current config.

If no custom config file was specified and a local project config file
is available, it will be loaded and merged with the current config.
Initialize the configuration .