WebApplication
class WebApplication extends AbstractWebApplication implements WindwalkerApplicationInterface, DispatcherAwareInterface, ContainerAwareInterface (View source)
The WebApplication class.
Traits
Methods
Class constructor.
Execute the application.
Method as the Psr7 WebHttpServer handler.
getRouter
bootRouting
getMiddlewareChain
Method to get property Middlewares
Method to set property middlewares
addMiddleware
addMessage
clearMessage
Get the logger.
Redirect to another URL.
Method to get property Mode
Method to set property mode
is utilized for reading data from inaccessible members.
Details
in WindwalkerTrait at line line 46
string
getName()
getName
in WindwalkerTrait at line line 68
Structure
getConfig()
getConfig
in WindwalkerTrait at line line 78
void
boot()
boot
in WindwalkerTrait at line line 291
AbstractPackage
getPackage(string $name = null)
getPackage
in WindwalkerTrait at line line 307
WindwalkerTrait
addPackage(string $name, AbstractPackage $package)
addPackage
in WindwalkerTrait at line line 322
boolean
isConsole()
isConsole
in WindwalkerTrait at line line 332
boolean
isWeb()
isWeb
at line line 113
__construct(ServerRequestInterface $request = null, Config $config = null, WebEnvironment $environment = null)
Class constructor.
at line line 150
ResponseInterface
execute()
Execute the application.
at line line 212
ResponseInterface
dispatch(ServerRequestInterface $request, ResponseInterface $response, callable $finalHandler = null)
Method as the Psr7 WebHttpServer handler.
at line line 232
MainRouter
getRouter(bool $new = false)
getRouter
at line line 256
WebApplication
bootRouting(bool $refresh = false)
bootRouting
at line line 270
WebApplication
setCurrentPackage(string|AbstractPackage $package)
setCurrentPackage
at line line 290
WebApplication
setTask(string|AbstractPackage $package, string|AbstractController $controller)
setTask
at line line 326
Psr7ChainBuilder
getMiddlewareChain()
getMiddlewareChain
at line line 358
PriorityQueue
getMiddlewares()
Method to get property Middlewares
at line line 375
WebApplication
setMiddlewares(PriorityQueue $middlewares)
Method to set property middlewares
at line line 390
WebApplication
addMiddleware(callable|Psr7InvokableInterface $middleware, int $priority = PriorityQueue::NORMAL)
addMiddleware
at line line 405
WindwalkerApplicationInterface
addMessage(string|array $messages, string $type = 'info')
addMessage
at line line 417
WebApplication
clearMessages()
clearMessage
at line line 431
LoggerManager
getLogger()
Get the logger.
at line line 450
void
redirect(string $url, boolean|int $code = 303)
Redirect to another URL.
If the headers have not been sent the redirect will be accomplished using a "301 Moved Permanently" or "303 See Other" code in the header pointing to the new location. If the headers have already been sent this will be accomplished using a JavaScript statement.
at line line 466
string
getMode()
Method to get property Mode
at line line 478
WebApplication
setMode(string $mode)
Method to set property mode
at line line 492
mixed
__get($name)
is utilized for reading data from inaccessible members.