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

Breadcrumb

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

interface InstalledRepositoryInterface

Installable repository interface.

Just used to tag installed repositories so the base classes can act differently on Alias packages

@author Jordi Boggiano <j.boggiano@seld.be>

Hierarchy

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

Expanded class hierarchy of InstalledRepositoryInterface

All classes that implement InstalledRepositoryInterface

13 files declare their use of InstalledRepositoryInterface
AutoloadGenerator.php in vendor/composer/composer/src/Composer/Autoload/AutoloadGenerator.php
Factory.php in vendor/composer/composer/src/Composer/Factory.php
InstallationManager.php in vendor/composer/composer/src/Composer/Installer/InstallationManager.php
Installer.php in vendor/composer/installers/src/Composer/Installers/Installer.php
Installer.php in vendor/composer/composer/src/Composer/Installer.php

... See full list

File

vendor/composer/composer/src/Composer/Repository/InstalledRepositoryInterface.php, line 22

Namespace

Composer\Repository
View source
interface InstalledRepositoryInterface extends WritableRepositoryInterface {
    
    /**
     * @return bool|null true if dev requirements were installed, false if --no-dev was used, null if yet unknown
     */
    public function getDevMode();
    
    /**
     * @return bool true if packages were never installed in this repository
     */
    public function isFresh();

}

Members

Title Sort descending Modifiers Object type Summary Overrides
InstalledRepositoryInterface::getDevMode public function
InstalledRepositoryInterface::isFresh public function 2
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