protected function fetchDefaultConfig()
    {
        $configFile = method_exists($this, 'getDefaultConfigFile')
            ? $this->getDefaultConfigFile()
            : __DIR__ . '/../config/defaults.php';

        return $this->fetchConfig($configFile);
    }
protected function fetchDefaultConfig()
    {
        $configFile = method_exists($this, 'getDefaultConfigFile')
            ? $this->getDefaultConfigFile()
            : __DIR__ . '/../config/defaults.php';

        return $this->fetchConfig($configFile);
    }
protected function fetchDefaultConfig ( ) { $ configFile = method_exists ( $ this , 'getDefaultConfigFile' ) ? $ this -> getDefaultConfigFile ( ) : __DIR__ . '/../config/defaults.php' ; return $ this -> fetchConfig ( $ configFile ) ; }
Get a default configuration in case none was injected into the constructor.

The name and path of the configuration needs to be set as a const called DEFAULT_CONFIG within the class
containing the trait. The path needs to be relative to the location of the containing class file.

@since 0.4.2

@return ConfigInterface Configuration settings to use.
Get a default configuration in case none was injected into the constructor .