public static function createFromRawConfig(string $rootPath, string $psr4RootPath) : Composer
    {
        $composerConfigPath = "$rootPath/composer.json";

        if (file_exists($composerConfigPath)) {
            return new Composer(json_decode(file_get_contents($composerConfigPath), true), $rootPath, $psr4RootPath);
        }

        return new Composer([], $rootPath, $psr4RootPath);
    }
public static function createFromRawConfig(string $rootPath, string $psr4RootPath) : Composer
    {
        $composerConfigPath = "$rootPath/composer.json";

        if (file_exists($composerConfigPath)) {
            return new Composer(json_decode(file_get_contents($composerConfigPath), true), $rootPath, $psr4RootPath);
        }

        return new Composer([], $rootPath, $psr4RootPath);
    }
public static function createFromRawConfig ( string $ rootPath , string $ psr4RootPath ) : Composer { $ composerConfigPath = "$rootPath/composer.json" ; if ( file_exists ( $ composerConfigPath ) ) { return new Composer ( json_decode ( file_get_contents ( $ composerConfigPath ) , true ) , $ rootPath , $ psr4RootPath ) ; } return new Composer ( [ ] , $ rootPath , $ psr4RootPath ) ; }
Creates an instance of this class from a raw Composer config file

@param string $rootPath The path to the roof of the project
@param string $psr4RootPath The path to the PSR-4 source directory
@return Composer An instance of this class
Creates an instance of this class from a raw Composer config file