Inject
final class Inject (View source)
Used to enable property injection.
Flow will build Dependency Injection code for the property and try to inject a value as specified by the var annotation.
Properties
bool | $lazy | Whether the dependency should be injected instantly or if a lazy dependency proxy should be injected instead |
|
string | $name | Optional object name This is useful if the object name does not match the class name of the object to be injected: (at)Inject(name="Some.Package:Some.Virtual.Object") |
Methods
__construct(array $values)
No description
Details
__construct(array $values)
No description