PHP-Deno

RuntimeOptions
in package

The options provided to the JsRuntime. Pass an instance of this class to Deno\Core\JsRuntime.

Table of Contents

Properties

$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.
$startup_snapshot  : string
V8 snapshot that should be loaded on startup.
$will_snapshot  : bool
Prepare runtime to take snapshot of loaded code. The snapshot is determinstic and uses predictable random numbers.

Methods

__construct()  : mixed

Properties

$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

$startup_snapshot

V8 snapshot that should be loaded on startup.

public string $startup_snapshot

Currently can’t be used with will_snapshot.

$will_snapshot

Prepare runtime to take snapshot of loaded code. The snapshot is determinstic and uses predictable random numbers.

public bool $will_snapshot

Currently can’t be used with startup_snapshot.

Methods


        
On this page

Search results