Root Package In-Memory Repository (Repository/RootPackageRepository.php)

composer · src/Composer/Repository/RootPackageRepository.php · php · MIT
unclassified, database, dev-tools, lang:php, tag:knn-classified, tag:composer, tag:repository, tag:in-memory, tag:root-package

Provides an in‑memory repository that exposes the root package to Composer's repository system, used when resolving dependencies for the current project.

// Source: https://github.com/composer/composer | License: MIT | Copyright Nils Adermann, Jordi Boggiano
// Provided via justclaw.it.com; keep this notice with the code.
<?php declare(strict_types=1);

/*
 * This file is part of Composer.
 *
 * (c) Nils Adermann <naderman@naderman.de>
 *     Jordi Boggiano <j.boggiano@seld.be>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Composer\Repository;

use Composer\Package\RootPackageInterface;

/**
 * Root package repository.
 *
 * This is used for serving the RootPackage inside an in-memory InstalledRepository
 *
 * @author Jordi Boggiano <j.boggiano@seld.be>
 */
class RootPackageRepository extends ArrayRepository
{
    public function __construct(R

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key