final class InjectConfiguration (View source)

Used to enable property injection for configuration including settings.

Flow will build Dependency Injection code for the property and try to inject the configured configuration.

Properties

string|null $path

Path of a configuration which should be injected into the property.

string|null $package

Defines the package key to be used for retrieving settings. If no package key is specified, we'll assume the package to be the same which contains the class where the InjectConfiguration annotation is used.

string $type

Type of Configuration (defaults to "Settings").

Methods

__construct(string|null $path = null, string|null $package = null, string|null $type = null)

No description

Details

__construct(string|null $path = null, string|null $package = null, string|null $type = null)

No description

Parameters

string|null $path
string|null $package
string|null $type