Apix\Main¶
- class Apix\Main¶
- Main:: VERSION = '@package_version@';
- property $config¶
Todo: review $his. Var: array
- property $request¶
Var: Request
- property $route¶
Var: Route
- property $resources¶
Var: Resources
- property $entity¶
Var: Entity
- property $response¶
Var: Response
- __construct()¶
Constructor.
Returns: void
- run()¶
Run the show...
Throws: \InvalidArgumentException $04 CodeCoverageIgnore:
- getServerVersion()¶
Gets the server version string.
Returns: string
- setRouting()¶
Sets and initialise the routing processes.
Parameters: - $request (Request) –
Returns: void
- getRoute()¶
Returns the route object.
Returns: Router
- getResponse()¶
Returns the response object.
Returns: Response
- negotiateFormat()¶
Returns the output format from the request chain.
- [default] => string e.g. ‘json’,
- [controller_ext] => boolean,
- [override] => false or $_REQUEST[‘format’],
- [http_accept] => boolean.
Parameters: - $opts (array) – Options are:
- $ext (string|false) – The contoller defined extension.
Returns: string