EngineResolver
class EngineResolver
Properties
| protected array | $resolvers | The array of engine resolvers. |
|
| protected array | $resolved | The resolved engine instances. |
Methods
void
forget(string $engine)
Remove a resolved engine.
Details
at line 31
void
register(string $engine, Closure $resolver)
Register a new engine resolver.
The engine string typically corresponds to a file extension.
Boot-only. The resolver persists on the singleton EngineResolver for the worker lifetime and applies to every subsequent engine resolution.
at line 43
Engine
resolve(string $engine)
Resolve an engine instance by name.
at line 62
void
forget(string $engine)
Remove a resolved engine.
Boot or tests only. Clears a worker-wide resolved engine shared by every coroutine; the next resolution rebuilds it from its registered resolver.