Class Application
The main application of the framework.
- Autarky\Application implements Symfony\Component\HttpKernel\HttpKernelInterface
public
|
#
__construct( Closure|string $environment, array $providers )
Construct a new application instance. |
public
|
#
config( callable|string|
Push a configurator on top of the stack. The configurators will be executed when the application is booted. If the application is already booted, the configurator will be executed at once. |
protected
|
#
invokeConfigurator( callable|string|
Invoke a single configurator. |
public
|
#
setEnvironment( string $environment )
Set the environment of the application. Has to be called before boot(). |
public
string
|
|
public
string[]
|
|
public
|
#
setErrorHandler(
Set the application's error handler. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
Symfony\Component\HttpFoundation\RequestStack
|
|
public
|
#
addMiddleware( Closure|string|array $middleware, integer $priority = null )
Add a middleware to the application. |
public
Symfony\Component\Console\Application
|
|
public
|
|
protected
|
|
protected
|
#
registerProvider(
Register a single service provider. |
protected
|
|
protected
Stack\Builder
|
|
protected
Symfony\Component\HttpKernel\HttpKernelInterface
|
|
public
Symfony\Component\HttpFoundation\Response
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
string |
VERSION
The framework version. |
#
'0.10.0'
|
protected
array
|
$providers
The application's service providers. |
#
[]
|
protected
SplPriorityQueue
|
$middlewares
|
|
protected
Autarky\Http\Kernel
|
$kernel
|
|
protected
Stack\Builder
|
$stack
|
|
protected
|
$config
|
|
protected
|
$container
|
|
protected
|
$errorHandler
|
|
protected
|
$console
|
|
protected
Closure|string
|
$environment
|
|
protected
boolean
|
$booting
|
#
false
|
protected
boolean
|
$booted
|
#
false
|
protected
SplDoublyLinkedList
|
$configurators
|
|
protected
Symfony\Component\HttpFoundation\RequestStack
|
$requests
|