WebApp Class
Aurora\App Namespace
Extends
- C App
Interfaces
Traits
Constructor
__construct
Constructor
Parameters
Psr\Container\ContainerInterface
$container
— Container instance
Signature
public function __construct(Psr\Container\ContainerInterface $container)
Methods
start
Run additional procedures
Signature
protected function start()
run
Run the app
Parameters
-
array
$params
— Array of parameters
Return Value
mixed
Signature
public function run(array $params = [])
getBaseUrl
Get the correct base URL from the ENV file
Parameters
-
Psr\Http\Message\ServerRequestInterface
$request
— Request
Return Value
string
Signature
protected function getBaseUrl(Psr\Http\Message\ServerRequestInterface $request): string
createRequestFromGlobals
Create a ServerRequest object from globals
Return Value
\ServerRequestInterface
Signature
protected function createRequestFromGlobals(): Psr\Http\Message\ServerRequestInterface
normalizeUploadedFiles
Normalize the uploaded files, if any
Return Value
array
Signature
protected function normalizeUploadedFiles(): array