ServiceProviderRegistryCache
in package
Class ServiceProviderRegistryCache
Tags
Table of Contents
- CACHE_KEY = 'service_provider_registry'
- $cache : SafeCache
- __construct() : mixed
- ServiceProviderRegistryCache constructor.
- getRegistry() : array<string|int, mixed>
- Returns the service provider registry cache.
- hasRegistry() : bool
- Checks if service provider registry cache exists.
- setRegistry() : void
- Updates the service provider registry cache.
Constants
CACHE_KEY
private
mixed
CACHE_KEY
= 'service_provider_registry'
Properties
$cache
private
SafeCache
$cache
Methods
__construct()
ServiceProviderRegistryCache constructor.
public
__construct(CacheFactory $cacheFactory) : mixed
Parameters
- $cacheFactory : CacheFactory
Return values
mixed —getRegistry()
Returns the service provider registry cache.
public
getRegistry(ServiceProviderRegistryType $type) : array<string|int, mixed>
Parameters
- $type : ServiceProviderRegistryType
Return values
array<string|int, mixed> —hasRegistry()
Checks if service provider registry cache exists.
public
hasRegistry(ServiceProviderRegistryType $type) : bool
Parameters
- $type : ServiceProviderRegistryType
Return values
bool —setRegistry()
Updates the service provider registry cache.
public
setRegistry(ServiceProviderRegistryType $type, array<string|int, mixed> $registryData) : void
Parameters
- $type : ServiceProviderRegistryType
- $registryData : array<string|int, mixed>