PHP-Deno

WorkerOptions
in package

The options to provide to Deno\Runtime\MainWorker.

Table of Contents

Properties

$bootstrap  : mixed
The Deno\Runtime\BootstrapOptions containing options for the bootstrap process.
$extensions  : array<string|int, Extension>
Extensions allow you to add additional functionality via Deno "ops" to the JsRuntime. `extensions` takes an array of Deno\Core\Extension instances. See Deno\Core\Extension for details on the PHP <=> JS functions bridge.
$module_loader  : ModuleLoader
The module loader accepts a callable which is responsible for loading ES6 modules from a given name. See `Deno\Core\ModuleLoader` for methods that should be implemented.

Methods

__construct()  : mixed

Properties

$bootstrap

The Deno\Runtime\BootstrapOptions containing options for the bootstrap process.

public mixed $bootstrap

$extensions

Extensions allow you to add additional functionality via Deno "ops" to the JsRuntime. `extensions` takes an array of Deno\Core\Extension instances. See Deno\Core\Extension for details on the PHP <=> JS functions bridge.

public array<string|int, Extension> $extensions

$module_loader

The module loader accepts a callable which is responsible for loading ES6 modules from a given name. See `Deno\Core\ModuleLoader` for methods that should be implemented.

public ModuleLoader $module_loader

Methods

__construct()

public __construct(BootstrapOptions $bootstrap, array<string|int, mixed> $extensions, mixed $module_loader) : mixed
Parameters
$bootstrap : BootstrapOptions
$extensions : array<string|int, mixed>
$module_loader : mixed

        
On this page

Search results