KMP PHP API Reference

QueuePlugin extends BasePlugin
in package
implements KMPPluginInterface

Plugin for Queue

Table of Contents

Interfaces

KMPPluginInterface
Plugin architecture contract for KMP plugins.

Properties

$_migrationOrder  : int
$middlewareEnabled  : bool

Methods

__construct()  : mixed
Constructor.
bootstrap()  : void
Load all the plugin configuration and bootstrap logic.
console()  : CommandCollection
Console hook
getMigrationOrder()  : int
Get migration order.
routes()  : void
services()  : void

Properties

$middlewareEnabled

protected bool $middlewareEnabled = false

Methods

__construct()

Constructor.

public __construct([mixed $config = [] ]) : mixed
Parameters
$config : mixed = []

bootstrap()

Load all the plugin configuration and bootstrap logic.

public bootstrap(PluginApplicationInterface $app) : void

The host application is provided as an argument. This allows you to load additional plugin dependencies, or attach events.

Parameters
$app : PluginApplicationInterface

The host application

console()

Console hook

public console(CommandCollection $commands) : CommandCollection
Parameters
$commands : CommandCollection

The command collection

Return values
CommandCollection

getMigrationOrder()

Get migration order.

public getMigrationOrder() : int
Return values
int

routes()

public routes(RouteBuilder $routes) : void
Parameters
$routes : RouteBuilder

The route builder to update.

services()

public services(ContainerInterface $container) : void
Parameters
$container : ContainerInterface

The DI container instance


        
On this page

Search results