class EngineResolver (View source)

Properties

protected array $resolvers

The array of engine resolvers.

protected array $resolved

The resolved engine instances.

Methods

void
register(string $engine, Closure $resolver)

Register a new engine resolver.

resolve(string $engine)

Resolve an engine instance by name.

Details

void register(string $engine, Closure $resolver)

Register a new engine resolver.

The engine string typically corresponds to a file extension.

Parameters

string $engine
Closure $resolver

Return Value

void

Engine resolve(string $engine)

Resolve an engine instance by name.

Parameters

string $engine

Return Value

Engine

Exceptions

InvalidArgumentException