trait ApplicationTrait (View source)

Provides static access to an Application instance.

Properties

static Application|null $instance Application instance.

Methods

static Application
make()

Make and assign a new application instance.

static Application|null
getApplication()

Get the Application instance.

static void
setApplication(Application|null $application)

Set the Application instance.

static mixed
__callStatic(string $method, array $parameters)

Invoke any matching instance method for the static method being called.

Details

static Application make()

Make and assign a new application instance.

Return Value

Application

static Application|null getApplication()

Get the Application instance.

Return Value

Application|null

static void setApplication(Application|null $application)

Set the Application instance.

Parameters

Application|null $application

Return Value

void

static mixed __callStatic(string $method, array $parameters)

Invoke any matching instance method for the static method being called.

Parameters

string $method
array $parameters

Return Value

mixed