PHP 클래스 blink\core\Application

상속: extends blink\core\ServiceLocator
파일 보기 프로젝트 열기: bixuehujin/blink 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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

보호된 프로퍼티들

프로퍼티 타입 설명
$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