Symfony\Installer\Manager\ComposerManager::getProjectConfig PHP Method

getProjectConfig() private method

It returns the project's Composer config as a PHP array.
private getProjectConfig ( ) : array
return array
    private function getProjectConfig()
    {
        $composerJsonPath = $this->projectDir . '/composer.json';
        if (!is_writable($composerJsonPath)) {
            return [];
        }
        return json_decode(file_get_contents($composerJsonPath), true);
    }