WorkerSwoolePlugin
Registers the swoole worker-runtime alias, its settings, and the swoole:serve launcher.
Synopsis
Section titled “Synopsis”final class WorkerSwoolePlugin implements PluginInterface
| Implements | PluginInterface |
| Source | WorkerSwoolePlugin.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
register(PluginRegistrar $registrar): void | Publishes the worker.swoole.* defaults, the runtime alias and the command. |
register()
Section titled “register()”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.
| Parameter | Type | Description |
|---|---|---|
$registrar | PluginRegistrar |