SinglePHPInstanceManager
Implements
Index
Constructors
Methods
Constructors
constructor
Parameters
options: SinglePHPInstanceManagerOptions
Returns SinglePHPInstanceManager
Methods
[asyncDispose]
Returns Promise<void>
acquirePHPInstance
Acquire a PHP instance for processing a request.
Returns Promise<AcquiredPHP>
An acquired PHP instance with a reap function.
getPrimaryPhp
Get the primary PHP instance. This instance is persistent and never killed.
Returns Promise<PHP>
A minimal PHP instance manager that manages a single PHP instance.
Unlike PHPProcessManager, this does not maintain a pool of instances or implement concurrency control. It simply returns the same PHP instance for every request.
This is suitable for CLI contexts where: