function ServiceLoader::serviceAvailable
@internal
2 calls to ServiceLoader::serviceAvailable()
- Plugin::dumpGeneratedServiceProviderData in vendor/
tbachert/ spi/ src/ Composer/ Plugin.php - ServiceLoader::register in vendor/
tbachert/ spi/ src/ ServiceLoader.php - Registers a service provider implementation for the given service type.
File
-
vendor/
tbachert/ spi/ src/ ServiceLoader.php, line 118
Class
- ServiceLoader
- Service provider loading facility.
Namespace
Nevay\SPICode
public static function serviceAvailable(string $service) : bool {
return interface_exists($service) || class_exists($service);
}