Property | Type | Description | |
---|---|---|---|
$booted | boolean | ||
$booting | boolean | ||
$config | Autarky\Config\ConfigInterface | ||
$configurators | SplDoublyLinkedList | ||
$console | |||
$container | Autarky\Container\ContainerInterface | ||
$environment | Closure | string | ||
$errorHandler | Autarky\Errors\ErrorHandlerManagerInterface | ||
$kernel | |||
$middlewares | SplPriorityQueue | ||
$providers | array | The application's service providers. | |
$requests | Symfony\Component\HttpFoundation\RequestStack | ||
$stack | Stack\Builder |
Method | Description | |
---|---|---|
__construct ( Closure | string $environment, array $providers ) | Construct a new application instance. | |
addMiddleware ( Closure | string | array $middleware, integer $priority = null ) | Add a middleware to the application. | |
alias ( ) | ||
boot ( ) : void | Boot the application. | |
bootConsole ( ) : |
Boot a console application. | |
config ( callable | string | autarky\ConfiguratorInterface $configurator ) : void | 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. | |
define ( ) | ||
getConfig ( ) : Autarky\Config\ConfigInterface | Get the application's config store. | |
getContainer ( ) : Autarky\Container\Container | Autarky\Container\ContainerInterface | Get the application's container. | |
getEnvironment ( ) : string | Get the current environment. | |
getErrorHandler ( ) : Autarky\Errors\ErrorHandlerManagerInterface | Get the application's error handler. | |
getProviders ( ) : string[] | Get the application's providers. | |
getRequestStack ( ) : Symfony\Component\HttpFoundation\RequestStack | Get the application's request stack. | |
getRouter ( ) : Autarky\Routing\RouterInterface | Get the application's router. | |
handle ( |
||
invoke ( ) | ||
mount ( ) | ||
params ( ) | ||
resolve ( ) | ||
route ( ) | ||
run ( |
Run the application. | |
setConfig ( Autarky\Config\ConfigInterface $config ) | Set the application's config store. | |
setContainer ( Autarky\Container\ContainerInterface $container ) | Set the application's container. | |
setEnvironment ( string $environment ) | Set the environment of the application. Has to be called before boot(). | |
setErrorHandler ( Autarky\Errors\ErrorHandlerManagerInterface $errorHandler ) | Set the application's error handler. | |
share ( ) |
Method | Description | |
---|---|---|
checkProviderDependencies ( Autarky\Providers\DependantProviderInterface $provider ) | ||
invokeConfigurator ( callable | string | autarky\ConfiguratorInterface $configurator ) : void | Invoke a single configurator. | |
registerProvider ( Autarky\Providers\ProviderInterface $provider ) : void | Register a single service provider. | |
registerProviders ( ) : void | Register all of the application's service providers. | |
resolveKernel ( ) : Symfony\Component\HttpKernel\HttpKernelInterface | Resolve the HTTP kernel. | |
resolveStack ( ) : Stack\Builder | Resolve the stack builder. |
public bootConsole ( ) : |
||
return |
protected checkProviderDependencies ( Autarky\Providers\DependantProviderInterface $provider ) | ||
$provider | Autarky\Providers\DependantProviderInterface |
public getConfig ( ) : Autarky\Config\ConfigInterface | ||
return | Autarky\Config\ConfigInterface |
public getContainer ( ) : Autarky\Container\Container | Autarky\Container\ContainerInterface | ||
return | Autarky\Container\Container | Autarky\Container\ContainerInterface |
public getEnvironment ( ) : string | ||
return | string |
public getErrorHandler ( ) : Autarky\Errors\ErrorHandlerManagerInterface | ||
return | Autarky\Errors\ErrorHandlerManagerInterface |
public getProviders ( ) : string[] | ||
return | string[] | array of provider class names |
public getRequestStack ( ) : Symfony\Component\HttpFoundation\RequestStack | ||
return | Symfony\Component\HttpFoundation\RequestStack |
public getRouter ( ) : Autarky\Routing\RouterInterface | ||
return | Autarky\Routing\RouterInterface |
public handle ( |
||
$request |
protected registerProvider ( Autarky\Providers\ProviderInterface $provider ) : void | ||
$provider | Autarky\Providers\ProviderInterface | |
return | void |
protected registerProviders ( ) : void | ||
return | void |
protected resolveKernel ( ) : Symfony\Component\HttpKernel\HttpKernelInterface | ||
return | Symfony\Component\HttpKernel\HttpKernelInterface |
protected resolveStack ( ) : Stack\Builder | ||
return | Stack\Builder |
public setConfig ( Autarky\Config\ConfigInterface $config ) | ||
$config | Autarky\Config\ConfigInterface |
public setContainer ( Autarky\Container\ContainerInterface $container ) | ||
$container | Autarky\Container\ContainerInterface |
public setEnvironment ( string $environment ) | ||
$environment | string |
public setErrorHandler ( Autarky\Errors\ErrorHandlerManagerInterface $errorHandler ) | ||
$errorHandler | Autarky\Errors\ErrorHandlerManagerInterface |
protected ConfigInterface,Autarky\Config $config | ||
return | Autarky\Config\ConfigInterface |
protected SplDoublyLinkedList $configurators | ||
return | SplDoublyLinkedList |
protected Application,Autarky\Console $console | ||
return |
protected ContainerInterface,Autarky\Container $container | ||
return | Autarky\Container\ContainerInterface |
protected ErrorHandlerManagerInterface,Autarky\Errors $errorHandler | ||
return | Autarky\Errors\ErrorHandlerManagerInterface |
protected array $providers | ||
return | array |
protected RequestStack,Symfony\Component\HttpFoundation $requests | ||
return | Symfony\Component\HttpFoundation\RequestStack |