PHP Класс blink\core\Application

Наследование: extends blink\core\ServiceLocator
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$commands string[] Available console commands.
$controllerNamespace
$currentRequest
$debug
$environment string The environment that the application is running on. dev, prod or test.
$name string The name for the application.
$plugins array The installed application plugins.
$root string The root path for the application.
$routes
$runtime
$server
$services array Application service definitions.
$timezone

Защищенные свойства (Protected)

Свойство Тип Описание
$bootstrapped
$dispatcher
$lastError
$refreshing

Открытые методы

Метод Описание
bootstrap ( )
consoleCommands ( ) : array Returns all console commands definitions.
defaultCommands ( ) : array Returns the default console commands definitions.
defaultServices ( )
handleRequest ( blink\http\Request $request ) : mixed
init ( )
makeRequest ( $config = [] )
route ( $method, $route, $handler )
shutdown ( ) Shutdown the application.

Защищенные методы

Метод Описание
afterAction ( $action, $request, $response )
beforeAction ( $action, $request )
createAction ( $handler )
dispatch ( $request )
exceptionToArray ( $exception )
exec ( $request, $response )
formatException ( $e, $response )
initializeConfig ( )
internalServerError ( )
refreshServices ( )
registerPlugins ( )
registerRoutes ( )
registerServices ( )
runAction ( $action, $args, $request, $response )

Описание методов

afterAction() защищенный Метод

protected afterAction ( $action, $request, $response )

beforeAction() защищенный Метод

protected beforeAction ( $action, $request )

bootstrap() публичный Метод

public bootstrap ( )

consoleCommands() публичный Метод

Returns all console commands definitions.
public consoleCommands ( ) : array
Результат array

createAction() защищенный Метод

protected createAction ( $handler )

defaultCommands() публичный Метод

Returns the default console commands definitions.
public defaultCommands ( ) : array
Результат array

defaultServices() публичный Метод

public defaultServices ( )

dispatch() защищенный Метод

protected dispatch ( $request )

exceptionToArray() защищенный Метод

protected exceptionToArray ( $exception )

exec() защищенный Метод

protected exec ( $request, $response )

formatException() защищенный Метод

protected formatException ( $e, $response )

handleRequest() публичный Метод

public handleRequest ( blink\http\Request $request ) : mixed
$request blink\http\Request
Результат mixed

init() публичный Метод

public init ( )

initializeConfig() защищенный Метод

protected initializeConfig ( )

internalServerError() защищенный Метод

protected internalServerError ( )

makeRequest() публичный Метод

public makeRequest ( $config = [] )

refreshServices() защищенный Метод

protected refreshServices ( )

registerPlugins() защищенный Метод

protected registerPlugins ( )

registerRoutes() защищенный Метод

protected registerRoutes ( )

registerServices() защищенный Метод

protected registerServices ( )

route() публичный Метод

public route ( $method, $route, $handler )

runAction() защищенный Метод

protected runAction ( $action, $args, $request, $response )

shutdown() публичный Метод

Shutdown the application.
public shutdown ( )

Описание свойств

$bootstrapped защищенное свойство

protected $bootstrapped

$commands публичное свойство

Available console commands.
public string[] $commands
Результат string[]

$controllerNamespace публичное свойство

public $controllerNamespace

$currentRequest публичное свойство

public $currentRequest

$debug публичное свойство

public $debug

$dispatcher защищенное свойство

protected $dispatcher

$environment публичное свойство

The environment that the application is running on. dev, prod or test.
public string $environment
Результат string

$lastError защищенное свойство

protected $lastError

$name публичное свойство

The name for the application.
public string $name
Результат string

$plugins публичное свойство

The installed application plugins.
public array $plugins
Результат array

$refreshing защищенное свойство

protected $refreshing

$root публичное свойство

The root path for the application.
public string $root
Результат string

$routes публичное свойство

public $routes

$runtime публичное свойство

public $runtime

$server публичное свойство

public $server

$services публичное свойство

Application service definitions.
public array $services
Результат array

$timezone публичное свойство

public $timezone