PrepareOrder uses trait:short
Table of Contents
Properties
- $api : array<string|int, mixed>
- The default api settings.
Methods
- initializeApi() : static
- Initializes the internal `api` settings.
- prepareOrder() : void
Properties
$api
The default api settings.
protected
array<string|int, mixed>
$api
= []
Methods
initializeApi()
Initializes the internal `api` settings.
public
initializeApi([array<string|int, mixed> $init = [] ][, ContainerInterface|null $container = null ]) : static
By default, this method search in the DI container a ControllerParam::API definition to initialize the "api" property.
Parameters
- $init : array<string|int, mixed> = []
-
Optional initialization array (e.g., ['api' => [ ... ] ] ).
- $container : ContainerInterface|null = null
-
Optional DI container for retrieving the 'api' array representation.
Tags
Return values
static —Returns the current controller instance for method chaining.
prepareOrder()
protected
prepareOrder(ServerRequestInterface|null $request, array<string|int, mixed>|null &$params, mixed &$order) : void
Parameters
- $request : ServerRequestInterface|null
- $params : array<string|int, mixed>|null
- $order : mixed