PHP Class Themosis\Facades\Facade

显示文件 Open project: themosis/framework Class Usage Examples

Protected Properties

Property Type Description
$app Themosis\Foundation\Application The Application instance.

Public Methods

Method Description
__callStatic ( string $method, array $args ) : mixed Magic method. Use to dynamically call the registered instance method.
getInstance ( ) : mixed Retrieve an instance from the container based on the alias defined in the facade.
setFacadeApplication ( Application $app ) Set the service container for the facades.

Protected Methods

Method Description
getFacadeAccessor ( ) : string Each facade must define their igniter service class key name.

Method Details

__callStatic() public static method

Magic method. Use to dynamically call the registered instance method.
public static __callStatic ( string $method, array $args ) : mixed
$method string The class method used.
$args array The method arguments.
return mixed

getFacadeAccessor() protected static method

Each facade must define their igniter service class key name.
protected static getFacadeAccessor ( ) : string
return string

getInstance() public static method

Retrieve an instance from the container based on the alias defined in the facade.
public static getInstance ( ) : mixed
return mixed

setFacadeApplication() public static method

Set the service container for the facades.
public static setFacadeApplication ( Application $app )
$app Themosis\Foundation\Application

Property Details

$app protected_oe static_oe property

The Application instance.
protected static Application,Themosis\Foundation $app
return Themosis\Foundation\Application