PHPInstanceManager
Hierarchy
- AsyncDisposable
- PHPInstanceManager
Implemented by
Index
Methods
acquirePHPInstance
Acquire a PHP instance for processing a request.
Parameters
optionaloptions: { considerPrimary?: boolean }
optionalconsiderPrimary: boolean
Whether the primary instance can be used. Set to false for operations that would corrupt the primary (e.g., CLI commands).
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>
Minimal interface for managing PHP instances.
This interface allows PHPRequestHandler to work with different instance management strategies: