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

Breadcrumb

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

function Plugin::serviceProviders

Return value

array<class-string, array<class-string, string>>

1 call to Plugin::serviceProviders()
Plugin::dumpGeneratedServiceProviderData in vendor/tbachert/spi/src/Composer/Plugin.php

File

vendor/tbachert/spi/src/Composer/Plugin.php, line 192

Class

Plugin

Namespace

Nevay\SPI\Composer

Code

private function serviceProviders(Composer $composer, IOInterface $io) : array {
    $mappings = [];
    $this->serviceProvidersFromExtraSpi($composer->getPackage(), $mappings);
    $this->serviceProvidersFromAutoloadFiles($composer->getPackage(), $mappings, self::getCwd(), $io);
    foreach ($composer->getRepositoryManager()
        ->getLocalRepository()
        ->getPackages() as $package) {
        $this->serviceProvidersFromExtraSpi($package, $mappings);
        if (($installPath = $composer->getInstallationManager()
            ->getInstallPath($package)) !== null) {
            $this->serviceProvidersFromAutoloadFiles($package, $mappings, $installPath, $io);
        }
    }
    return $mappings;
}

API Navigation

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