Methods |
abstract
protected
static
|
getService(): class-string<TService>|array{class-string<TService>, (class-string<TService>[]|class-string<TService>)}
Get the facade's underlying class, or an array with the facade's
underlying class at index 0 and an inheritor or list…
Get the facade's underlying class, or an array with the facade's
underlying class at index 0 and an inheritor or list thereof at index 1
|
#
|
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
Returns the instance returned by
{@see FacadeAwareInterface::withoutFacade()} if the underlying instance
implements {@see FacadeAwareInterface}.
Implements
|
#
|
final
public
static
|
__callStatic(string $name, array $arguments)
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
|
#
|