Methods |
abstract
protected
static
|
getService(): class-string<TService>|array<class-string<TService>, class-string<TService>|array<class-string<TService>>>
Get the facade's underlying class, or an array that maps its underlying
class to compatible implementations
Get the facade's underlying class, or an array that maps its underlying
class to compatible implementations
At least one of the values returned should be an instantiable class that
is guaranteed to exist.
|
#
|
final
public
static
|
isLoaded(): bool
Check if the facade's underlying instance is loaded
Check if the facade's underlying instance is loaded
Implements
|
#
|
final
public
static
|
load(?object $instance = null): void
Load the facade's underlying instance
Load the facade's underlying instance
If $instance is null , the facade creates a new underlying instance.
Then, if the instance implements {@see FacadeAwareInterface}, it is
replaced with the return value of
{@see FacadeAwareInterface::withFacade()}.
Implements
|
#
|
final
public
static
|
swap(object $instance): void
Replace the facade's underlying instance
Replace the facade's underlying instance
Equivalent to calling {@see unload()} before passing $instance to
{@see load()}.
Implements
|
#
|
final
public
static
|
unload(): void
Remove the facade's underlying instance if loaded
Remove the facade's underlying instance if loaded
If the underlying instance implements {@see FacadeAwareInterface}, it is
replaced with the return value of
{@see FacadeAwareInterface::withoutFacade()}.
Then, if the instance implements {@see Unloadable}, its
{@see Unloadable::unload()} method is called.
Implements
|
#
|
final
public
static
|
unloadAll(): void
Remove the underlying instances of all facades
Remove the underlying instances of all facades
|
#
|
final
public
static
|
getInstance(): object
Get the facade's underlying instance, loading it if necessary
Get the facade's underlying instance, loading it if necessary
Implements
|
#
|
final
public
static
|
__callStatic(string $name, mixed[] $arguments): mixed
Forward a static method to the facade's underlying instance, loading it
if necessary
Forward a static method to the facade's underlying instance, loading it
if necessary
Implements
|
#
|