class SilverStripeServiceConfigurationLocator extends ServiceConfigurationLocator (View source)

Use the SilverStripe configuration system to lookup config for a particular service.

Properties

protected array $configs

List of Injector configurations cached from Config in class => config format.

Methods

public
mixed
locateConfigFor(string $name)

Finds the Injector config for a named service.

protected
mixed
configFor(string $name)

Retrieves the config for a named service without performing a hierarchy walk

Details

mixed locateConfigFor(string $name)

Finds the Injector config for a named service.

Parameters

string $name

Return Value

mixed

protected mixed configFor(string $name)

Retrieves the config for a named service without performing a hierarchy walk

Parameters

string $name

Name of service

Return Value

mixed

Returns either the configuration data, if there is any. A missing config is denoted by a value of either null (there is no direct config assigned and a hierarchy walk is necessary) or false (there is no config for this class, nor within the hierarchy for this class).