src/ProjectLoader.php
private function loadComposerConfiguration() : array
    {
        $contents = file_get_contents($this->root . '/composer.json');
        $config = json_decode($contents, true);

        if (json_last_error() !== JSON_ERROR_NONE) {
            throw new RuntimeException(json_last_error_msg());
        }

        return $config;
    }
private function loadComposerConfiguration() : array
    {
        $contents = file_get_contents($this->root . '/composer.json');
        $config = json_decode($contents, true);

        if (json_last_error() !== JSON_ERROR_NONE) {
            throw new RuntimeException(json_last_error_msg());
        }

        return $config;
    }
private function loadComposerConfiguration ( ) : array { $ contents = file_get_contents ( $ this -> root . '/composer.json' ) ; $ config = json_decode ( $ contents , true ) ; if ( json_last_error ( ) !== JSON_ERROR_NONE ) { throw new RuntimeException ( json_last_error_msg ( ) ) ; } return $ config ; }
Loads composer configuration from the given file

@return array Configuration parameters
Loads composer configuration from the given file