src/phpDocumentor/Configuration/Loader.php
private function createConfigurationObject($templatePath, $defaultUserConfigPath, $customUserConfigPath, $class)
    {
        $config = $this->serializer->deserialize(file_get_contents($templatePath), $class, 'xml');
        $customUserConfigPath = $customUserConfigPath ? : $defaultUserConfigPath;

        if ($customUserConfigPath !== null && is_readable($customUserConfigPath)) {
            $userConfigFile = $this->serializer->deserialize(file_get_contents($customUserConfigPath), $class, 'xml');

            $config = $this->merger->run($config, $userConfigFile);
        }

        return $config;
    }
private function createConfigurationObject($templatePath, $defaultUserConfigPath, $customUserConfigPath, $class)
    {
        $config = $this->serializer->deserialize(file_get_contents($templatePath), $class, 'xml');
        $customUserConfigPath = $customUserConfigPath ? : $defaultUserConfigPath;

        if ($customUserConfigPath !== null && is_readable($customUserConfigPath)) {
            $userConfigFile = $this->serializer->deserialize(file_get_contents($customUserConfigPath), $class, 'xml');

            $config = $this->merger->run($config, $userConfigFile);
        }

        return $config;
    }
private function createConfigurationObject ( $ templatePath , $ defaultUserConfigPath , $ customUserConfigPath , $ class ) { $ config = $ this -> serializer -> deserialize ( file_get_contents ( $ templatePath ) , $ class , 'xml' ) ; $ customUserConfigPath = $ customUserConfigPath ? : $ defaultUserConfigPath ; if ( $ customUserConfigPath !== null && is_readable ( $ customUserConfigPath ) ) { $ userConfigFile = $ this -> serializer -> deserialize ( file_get_contents ( $ customUserConfigPath ) , $ class , 'xml' ) ; $ config = $ this -> merger -> run ( $ config , $ userConfigFile ) ; } return $ config ; }
Combines the given configuration files and serializes a new Configuration object from them.

@param string           $templatePath          Path to the template configuration file.
@param string           $defaultUserConfigPath Path to the phpdoc.xml or phpdoc,dist.xml in the current working
directory.
@param null|bool|string $customUserConfigPath  Path to the user-defined config file given using the command-line.
@param string           $class                 Base Configuration class name to construct and populate.

@return null|object
Combines the given configuration files and serializes a new Configuration object from them .