Oihana PHP System

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
throws
NotFoundExceptionInterface

If the container is used and the 'api' definition is not found in the DI container.

throws
ContainerExceptionInterface

If the container throws an internal error.

throws
RuntimeException

If no valid App instance is provided or found.

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
Tags
throws
NotFoundException

        
On this page

Search results