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;
    }