CacheableRuntimeRegistry
in package
implements
Registry
Composer backed registry intended for the discovery phase or live development.
Interfaces, Classes, Traits and Enums
- Registry
- Registry public interface
Table of Contents
- $cache : CacheInterface|null
- $cacheKey : string
- $container : Injector|ContainerInterface
- __construct() : mixed
- getContainer() : ContainerInterface
- Expose the DI Container instance internally used
- hasApplication() : bool
- Check if an application is present.
- listApplications() : iteratable<string|int, string>
- List the available applications disregarding their readiness
Properties
$cache
private
CacheInterface|null
$cache
= null
$cacheKey
private
string
$cacheKey
= self::class . __DIR__
$container
private
Injector|ContainerInterface
$container
Methods
__construct()
public
__construct(Injector|ContainerInterface $container[, CacheInterface|null $cache = null ][, string $cacheKey = self::class . __DIR__ ]) : mixed
Parameters
- $container : Injector|ContainerInterface
- $cache : CacheInterface|null = null
- $cacheKey : string = self::class . __DIR__
Return values
mixed —getContainer()
Expose the DI Container instance internally used
public
getContainer() : ContainerInterface
Return values
ContainerInterface —hasApplication()
Check if an application is present.
public
hasApplication(string $application) : bool
Parameters
- $application : string
Tags
Return values
bool —listApplications()
List the available applications disregarding their readiness
public
listApplications() : iteratable<string|int, string>
This is supposed to be static during a normal operations cycle
Return values
iteratable<string|int, string> —The identifier strings used in the DI container