PHP Class Equip\Application

ファイルを表示 Open project: equip/framework

Public Methods

Method Description
__construct ( Auryn\Injector $injector = null, Equip\Configuration\ConfigurationSet $configuration = null, MiddlewareSet $middleware = null )
build ( Auryn\Injector $injector = null, Equip\Configuration\ConfigurationSet $configuration = null, MiddlewareSet $middleware = null ) : static Create a new application
run ( string $runner = Relay::class ) : Psr\Http\Message\ResponseInterface Run the application
setConfiguration ( array $configuration ) : self Change configuration values
setMiddleware ( array $middleware ) : self Change middleware
setRouting ( callable | string $routing ) : self Change routing

Method Details

__construct() public method

public __construct ( Auryn\Injector $injector = null, Equip\Configuration\ConfigurationSet $configuration = null, MiddlewareSet $middleware = null )
$injector Auryn\Injector
$configuration Equip\Configuration\ConfigurationSet
$middleware Equip\Middleware\MiddlewareSet

build() public static method

Create a new application
public static build ( Auryn\Injector $injector = null, Equip\Configuration\ConfigurationSet $configuration = null, MiddlewareSet $middleware = null ) : static
$injector Auryn\Injector
$configuration Equip\Configuration\ConfigurationSet
$middleware Equip\Middleware\MiddlewareSet
return static

run() public method

Run the application
public run ( string $runner = Relay::class ) : Psr\Http\Message\ResponseInterface
$runner string
return Psr\Http\Message\ResponseInterface

setConfiguration() public method

Change configuration values
public setConfiguration ( array $configuration ) : self
$configuration array
return self

setMiddleware() public method

Change middleware
public setMiddleware ( array $middleware ) : self
$middleware array
return self

setRouting() public method

Change routing
public setRouting ( callable | string $routing ) : self
$routing callable | string
return self