ServerProviderManager
class ServerProviderManager extends Manager
Traits
Properties
| protected Repository | $config | The configuration repository instance. |
from Manager |
| protected Closure> | $customCreators | The registered custom driver creators. |
from Manager |
| protected array<array-key, mixed> | $drivers | The array of created "drivers". |
from Manager |
Methods
Get the default driver name.
Dynamically call the default driver instance.
Create the Reverb driver.
No description
No description
No description
No description
No description
No description
No description
Details
in
RebindsCallbacksToSelf at line 18
protected Closure|null
bindCallbackToSelf(Closure $callback)
Bind the provided callback to the class instance.
at line 25
__construct(Container $container)
Create a new server manager instance.
at line 44
string|null
getDefaultDriver()
Get the default driver name.
in
Manager at line 57
mixed
driver(UnitEnum|string|null $driver = null)
Get a driver instance.
in
Manager at line 89
protected mixed
createDriver(string $driver)
Create a new driver instance.
in
Manager at line 110
protected mixed
callCustomCreator(string $driver)
Call a custom driver creator.
in
Manager at line 126
Manager
extend(string $driver, Closure $callback)
Register a custom driver creator Closure.
Anonymous closures run in this manager's class scope; non-static closures also receive the manager as $this.
Boot-only. The callback persists in the singleton's customCreators array for the worker lifetime and applies to every subsequent driver resolution.
in
Manager at line 145
array
getDrivers()
Get all of the created "drivers".
in
Manager at line 167
Manager
setContainer(Container $container)
Set the container instance used by the manager.
Tests only. Swaps the singleton's container and configuration references; per-request use races across coroutines and breaks every concurrent driver resolution through this manager.
in
Manager at line 184
Manager
forgetDrivers()
Forget all of the resolved driver instances.
Boot or tests only. Clears the singleton's driver cache; concurrent coroutines may already hold references that next resolution will not share.
in
Manager at line 194
mixed
__call(string $method, array $parameters)
Dynamically call the default driver instance.
at line 33
HypervelServerProvider
createReverbDriver()
Create the Reverb driver.
at line 20
void
register()
No description
at line 20
void
boot()
No description
at line 20
bool
shouldPublishEvents()
No description
at line 20
bool
shouldNotPublishEvents()
No description
at line 20
bool
subscribesToEvents()
No description
at line 20
bool
doesNotSubscribeToEvents()
No description
at line 20
void
withPublishing()
No description