class Manager (View source)

Properties

protected ProviderInterface[] $providers

The keyed (by name) list of registered providers.

protected PresetInterface[]|null $presets

The list of loaded presets.

Methods

register(ProviderInterface $provider)

Register a provider.

reset()

Reset the list of loaded presets.

unregister(ProviderInterface|string $nameOrObject)

Unregister a provider.

getByName(string $name)

Get a provider by its name.

getProviders()

Get the keyed (by name) list of registered providers.

getPresets()

Get all the presets.

getPresetByIdentifier(string $identifier)

Get a preset by its identifier.

Details

register(ProviderInterface $provider)

Register a provider.

Parameters

ProviderInterface $provider

reset()

Reset the list of loaded presets.

unregister(ProviderInterface|string $nameOrObject)

Unregister a provider.

Parameters

ProviderInterface|string $nameOrObject

ProviderInterface|null getByName(string $name)

Get a provider by its name.

Parameters

string $name

Return Value

ProviderInterface|null

ProviderInterface[] getProviders()

Get the keyed (by name) list of registered providers.

Return Value

ProviderInterface[]

PresetInterface[]|null getPresets()

Get all the presets.

Return Value

PresetInterface[]|null

Exceptions

InvalidPresetException

PresetInterface|null getPresetByIdentifier(string $identifier)

Get a preset by its identifier.

Parameters

string $identifier

Return Value

PresetInterface|null