\Omega\Support\Facade FacadeInterface

Interface FacadeInterface.

The FacadeInterface defines the contract for all facade classes within the application. It requires the implementation of the getFacadeAccessor method, which is crucial for accessing the underlying instance from the application container. This allows facades to provide a static interface to underlying services, making them easier to use throughout the application.

Implementing this interface ensures that all facades follow a consistent pattern for resolving their underlying services, facilitating dependency injection and improving maintainability.

Summary

Methods
Constants
getFacadeAccessor()
No public constants found

Methods

getFacadeAccessor()

getFacadeAccessor() : string

Get the facade accessor.

This method must be implemented by subclasses to return the key used to resolve the underlying instance from the application container.

Returns

string —

Return the key used to access the underlying instance.