Свойство | 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 |
Méthode | 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 ( ) |
Méthode | 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 ( ) : |
||
Résultat |
protected checkProviderDependencies ( Autarky\Providers\DependantProviderInterface $provider ) | ||
$provider | Autarky\Providers\DependantProviderInterface |
public getConfig ( ) : Autarky\Config\ConfigInterface | ||
Résultat | Autarky\Config\ConfigInterface |
public getContainer ( ) : Autarky\Container\Container | Autarky\Container\ContainerInterface | ||
Résultat | Autarky\Container\Container | Autarky\Container\ContainerInterface |
public getEnvironment ( ) : string | ||
Résultat | string |
public getErrorHandler ( ) : Autarky\Errors\ErrorHandlerManagerInterface | ||
Résultat | Autarky\Errors\ErrorHandlerManagerInterface |
public getProviders ( ) : string[] | ||
Résultat | string[] | array of provider class names |
public getRequestStack ( ) : Symfony\Component\HttpFoundation\RequestStack | ||
Résultat | Symfony\Component\HttpFoundation\RequestStack |
public getRouter ( ) : Autarky\Routing\RouterInterface | ||
Résultat | Autarky\Routing\RouterInterface |
public handle ( |
||
$request |
protected registerProvider ( Autarky\Providers\ProviderInterface $provider ) : void | ||
$provider | Autarky\Providers\ProviderInterface | |
Résultat | void |
protected registerProviders ( ) : void | ||
Résultat | void |
protected resolveKernel ( ) : Symfony\Component\HttpKernel\HttpKernelInterface | ||
Résultat | Symfony\Component\HttpKernel\HttpKernelInterface |
protected resolveStack ( ) : Stack\Builder | ||
Résultat | 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 | ||
Résultat | Autarky\Config\ConfigInterface |
protected SplDoublyLinkedList $configurators | ||
Résultat | SplDoublyLinkedList |
protected Application,Autarky\Console $console | ||
Résultat |
protected ContainerInterface,Autarky\Container $container | ||
Résultat | Autarky\Container\ContainerInterface |
protected ErrorHandlerManagerInterface,Autarky\Errors $errorHandler | ||
Résultat | Autarky\Errors\ErrorHandlerManagerInterface |
protected SplPriorityQueue $middlewares | ||
Résultat | SplPriorityQueue |
protected array $providers | ||
Résultat | array |
protected RequestStack,Symfony\Component\HttpFoundation $requests | ||
Résultat | Symfony\Component\HttpFoundation\RequestStack |