class DefaultRuntime implements RuntimeInterface, ApplicationAwareInterface (View source)

Traits

Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface

Constants

STATUS_INACTIVE

STATUS_ACTIVE

STATUS_ENDED

Properties

protected Application $app from  ApplicationAwareTrait
protected string $boot_class
protected string $run_class
protected int $status

Methods

setApplication(Application $app)

Setter method for the application

__construct(string $boot_class = 'Concrete\\Core\\Foundation\\Runtime\\Boot\\DefaultBooter', string $run_class = 'Concrete\\Core\\Foundation\\Runtime\\Run\\DefaultRunner')

DefaultRuntime constructor.

getBooter()

No description

getRunner()

No description

setRunClass(string $run_class)

No description

setBootClass(string $boot_class)

No description

mixed
boot()

Initialize the environment and prepare for running.

mixed
run()

Begin the runtime.

sendResponse(Response $response)

The method that handles properly sending a response.

Details

setApplication(Application $app)

Setter method for the application

Parameters

Application $app

__construct(string $boot_class = 'Concrete\\Core\\Foundation\\Runtime\\Boot\\DefaultBooter', string $run_class = 'Concrete\\Core\\Foundation\\Runtime\\Run\\DefaultRunner')

DefaultRuntime constructor.

Parameters

string $boot_class

The class to use for the booter

string $run_class

The class to use for the runner

protected BootInterface getBooter()

No description

Return Value

BootInterface

protected RunInterface getRunner()

No description

Return Value

RunInterface

setRunClass(string $run_class)

No description

Parameters

string $run_class

setBootClass(string $boot_class)

No description

Parameters

string $boot_class

mixed boot()

Initialize the environment and prepare for running.

Return Value

mixed

mixed run()

Begin the runtime.

Return Value

mixed

protected sendResponse(Response $response)

The method that handles properly sending a response.

Parameters

Response $response