AbstractWebApplication
class AbstractWebApplication extends AbstractApplication (View source)
Application for Web HTTP foundation.
Methods
Class constructor.
Execute the application.
Returns a property of the object or the default value if the property is not set.
Modifies a property of the object, creating it if it does not already exist.
is utilized for reading data from inaccessible members.
Method as the Psr7 WebHttpServer handler.
Magic method to render output.
Redirect to another URL.
Method to get property Environment
Method to get property FinalHandler
Method to set property finalHandler
Method to check to see if headers have already been sent.
Method to get property Server
Method to get property Request
Method to get property Browser
Method to get property Platform
Details
at line line 88
__construct(ServerRequestInterface $request = null, Structure $config = null, WebEnvironment $environment = null)
Class constructor.
in AbstractApplication at line line 64
void
close(integer|string $message)
Method to close the application.
at line line 112
mixed
execute()
Execute the application.
in AbstractApplication at line line 128
mixed
get(string $key, mixed $default = null)
Returns a property of the object or the default value if the property is not set.
in AbstractApplication at line line 140
LoggerInterface
getLogger()
Get the logger.
in AbstractApplication at line line 175
mixed
set(string $key, mixed $value = null)
Modifies a property of the object, creating it if it does not already exist.
in AbstractApplication at line line 193
AbstractApplication
setConfiguration(Structure $config)
Sets the configuration for the application.
in AbstractApplication at line line 209
AbstractApplication
setLogger(LoggerInterface $logger)
Set the logger.
at line line 403
mixed
__get($name)
is utilized for reading data from inaccessible members.
at line line 156
abstract ResponseInterface
dispatch(ServerRequestInterface $request, ResponseInterface $response, callable $next = null)
Method as the Psr7 WebHttpServer handler.
at line line 165
string
__toString()
Magic method to render output.
at line line 188
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 256
WebEnvironment
getEnvironment()
Method to get property Environment
at line line 270
AbstractWebApplication
setEnvironment(WebEnvironment $environment)
Method to set property environment
at line line 284
callable
getFinalHandler()
Method to get property FinalHandler
at line line 298
AbstractWebApplication
setFinalHandler(callable $finalHandler)
Method to set property finalHandler
at line line 315
boolean
checkHeadersSent()
Method to check to see if headers have already been sent.
We wrap headers_sent() function with this method for testing reason.
at line line 327
WebHttpServer
getServer()
Method to get property Server
at line line 341
AbstractWebApplication
setServer(WebHttpServer $server)
Method to set property server
at line line 355
ServerRequestInterface
getRequest()
Method to get property Request