Skip to content

WorkerSwoolePlugin

Registers the swoole worker-runtime alias, its settings, and the swoole:serve launcher.

final class WorkerSwoolePlugin implements PluginInterface

ImplementsPluginInterface
SourceWorkerSwoolePlugin.php
MethodDescription
register(PluginRegistrar $registrar): voidPublishes the worker.swoole.* defaults, the runtime alias and the command.

public function register(PluginRegistrar $registrar): void

Publishes the worker.swoole.* defaults, the runtime alias and the command.

Adds swoole to WorkerRuntimeRegistry and registers SwooleServeCommand. Nothing here touches ext-swoole, so the plugin loads on a machine without it.

ParameterTypeDescription
$registrarPluginRegistrar