Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. WritableRepositoryInterface.php

interface WritableRepositoryInterface

Writable repository interface.

@author Konstantin Kudryashov <ever.zet@gmail.com>

Hierarchy

  • interface \Composer\Repository\RepositoryInterface extends \Composer\Repository\Countable
    • interface \Composer\Repository\WritableRepositoryInterface extends \Composer\Repository\RepositoryInterface

Expanded class hierarchy of WritableRepositoryInterface

All classes that implement WritableRepositoryInterface

File

vendor/composer/composer/src/Composer/Repository/WritableRepositoryInterface.php, line 23

Namespace

Composer\Repository
View source
interface WritableRepositoryInterface extends RepositoryInterface {
    
    /**
     * Writes repository (f.e. to the disc).
     *
     * @param bool $devMode Whether dev requirements were included or not in this installation
     * @return void
     */
    public function write(bool $devMode, InstallationManager $installationManager);
    
    /**
     * Adds package to the repository.
     *
     * @param PackageInterface $package package instance
     * @return void
     */
    public function addPackage(PackageInterface $package);
    
    /**
     * Removes package from the repository.
     *
     * @param PackageInterface $package package instance
     * @return void
     */
    public function removePackage(PackageInterface $package);
    
    /**
     * Get unique packages (at most one package of each name), with aliases resolved and removed.
     *
     * @return PackageInterface[]
     */
    public function getCanonicalPackages();
    
    /**
     * Forces a reload of all packages.
     *
     * @return void
     */
    public function reload();
    
    /**
     * @param string[] $devPackageNames
     * @return void
     */
    public function setDevPackageNames(array $devPackageNames);
    
    /**
     * @return string[] Names of dependencies installed through require-dev
     */
    public function getDevPackageNames();

}

Members

Title Sort descending Modifiers Object type Summary Overrides
RepositoryInterface::findPackage public function Searches for the first match of a package by name and version. 3
RepositoryInterface::findPackages public function Searches for all packages matching a name and optionally a version. 3
RepositoryInterface::getPackages public function Returns list of registered packages. 3
RepositoryInterface::getProviders public function Returns a list of packages providing a given package name 3
RepositoryInterface::getRepoName public function Returns a name representing this repository to the user 3
RepositoryInterface::hasPackage public function Checks if specified package registered (installed). 3
RepositoryInterface::loadPackages public function Returns list of registered packages with the supplied name 3
RepositoryInterface::search public function Searches the repository for packages containing the query 3
RepositoryInterface::SEARCH_FULLTEXT public constant
RepositoryInterface::SEARCH_NAME public constant
RepositoryInterface::SEARCH_VENDOR public constant
WritableRepositoryInterface::addPackage public function Adds package to the repository.
WritableRepositoryInterface::getCanonicalPackages public function Get unique packages (at most one package of each name), with aliases resolved and removed.
WritableRepositoryInterface::getDevPackageNames public function 1
WritableRepositoryInterface::reload public function Forces a reload of all packages. 1
WritableRepositoryInterface::removePackage public function Removes package from the repository.
WritableRepositoryInterface::setDevPackageNames public function 1
WritableRepositoryInterface::write public function Writes repository (f.e. to the disc). 1

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal