public function load($templatePath, $userConfigurationPath, $class = 'phpDocumentor\Configuration')
    {
        $userConfigFilePath = $this->fetchUserConfigFileFromCommandLineOptions();

        if ($this->isValidFile($userConfigFilePath)) {
            chdir(dirname($userConfigFilePath));
        } else {
            $userConfigFilePath = null;
        }

        return $this->createConfigurationObject($templatePath, $userConfigurationPath, $userConfigFilePath, $class);
    }
public function load($templatePath, $userConfigurationPath, $class = 'phpDocumentor\Configuration')
    {
        $userConfigFilePath = $this->fetchUserConfigFileFromCommandLineOptions();

        if ($this->isValidFile($userConfigFilePath)) {
            chdir(dirname($userConfigFilePath));
        } else {
            $userConfigFilePath = null;
        }

        return $this->createConfigurationObject($templatePath, $userConfigurationPath, $userConfigFilePath, $class);
    }
public function load ( $ templatePath , $ userConfigurationPath , $ class = 'phpDocumentor\Configuration' ) { $ userConfigFilePath = $ this -> fetchUserConfigFileFromCommandLineOptions ( ) ; if ( $ this -> isValidFile ( $ userConfigFilePath ) ) { chdir ( dirname ( $ userConfigFilePath ) ) ; } else { $ userConfigFilePath = null ; } return $ this -> createConfigurationObject ( $ templatePath , $ userConfigurationPath , $ userConfigFilePath , $ class ) ; }
Loads the configuration from the provided paths and returns a populated configuration object.

@param string $templatePath          Path to configuration file containing default settings.
@param string $userConfigurationPath Path to a file containing user overrides.
@param string $class                 The class to instantiate and populate with these options.

@return object
Loads the configuration from the provided paths and returns a populated configuration object .