AbstractPackage
class AbstractPackage implements DispatcherAwareInterface (View source)
The AbstractPackage class.
Traits
Methods
initialise
getController
execute
dispatch
Register providers.
registerListeners
Register commands to console.
addMiddleware
getMiddlewareChain
Method to get property Middlewares
Method to set property middlewares
loadConfiguration
getMvcResolver
Get bundle name.
Method to set property name
get
set
getFile
getDir
enable
disable
isEnabled
Method to get property Task
Method to set property task
getDispatcher
setDispatcher
Method to get property Config
Method to set property config
Method to get property CurrentController
__get
Details
at line line 116
void
boot()
initialise
at line line 148
AbstractController
getController(string $task, array|Input $input = null, bool $forceNew = false)
getController
at line line 183
ResponseInterface
execute(string|AbstractController $controller, ServerRequestInterface $request, ResponseInterface $response, bool $hmvc = false)
execute
at line line 211
ResponseInterface
dispatch(ServerRequestInterface $request, ResponseInterface $response, callable $next = null)
dispatch
at line line 263
ResponseInterface
executeTask(string|AbstractController $task, array|Input $input = null)
run
at line line 296
void
registerProviders(Container $container)
Register providers.
at line line 341
void
registerListeners(DispatcherInterface $dispatcher)
registerListeners
at line line 383
void
registerCommands(Console $console)
Register commands to console.
at line line 420
AbstractPackage
addMiddleware(callable $middleware, int $priority = PriorityQueue::NORMAL)
addMiddleware
at line line 432
Psr7ChainBuilder
getMiddlewareChain()
getMiddlewareChain
at line line 460
PriorityQueue
getMiddlewares()
Method to get property Middlewares
at line line 477
AbstractPackage
setMiddlewares(PriorityQueue $middlewares)
Method to set property middlewares
at line line 491
AbstractPackage
loadConfig(Structure $config)
loadConfiguration
at line line 532
MainRouter
loadRouting(MainRouter $router, string $group = null)
loadRouting
at line line 554
MvcResolver
getMvcResolver()
getMvcResolver
at line line 564
string
getName()
Get bundle name.
at line line 576
AbstractPackage
setName(string $name)
Method to set property name
at line line 591
mixed
get(string $name, mixed $default = null)
get
at line line 604
AbstractPackage
set(string $name, mixed $value)
set
at line line 616
string
getFile()
getFile
at line line 628
string
getDir()
getDir
at line line 638
AbstractPackage
enable()
enable
at line line 650
AbstractPackage
disable()
disable
at line line 662
bool
isEnabled()
isEnabled
at line line 674
string
getTask()
Method to get property Task
at line line 688
AbstractPackage
setTask(string $task)
Method to set property task
at line line 700
DispatcherInterface
getDispatcher()
getDispatcher
at line line 712
AbstractPackage
setDispatcher(DispatcherInterface $dispatcher)
setDispatcher
at line line 726
Structure
getConfig()
Method to get property Config
at line line 747
AbstractPackage
setConfig(Structure $config)
Method to set property config
at line line 759
AbstractController
getCurrentController()
Method to get property CurrentController
at line line 770
mixed
__get(string $name)
__get