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
Namespace
Nevay\SPI\ComposerCode
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;
}