EngineResolver

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.

Engine 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

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/View/Engines/EngineResolver.html