PropertyInjector
in package
implements
PropertyInjectorInterface
Sets public properties marked for injection.
The injector will attempt to retrieve a dependency from the provided PSR-11 contiainer using the dependency identifier from the Inject attribute.
Interfaces, Classes, Traits and Enums
- PropertyInjectorInterface
Table of Contents
- __construct() : mixed
- inject() : void
- {@inheritdoc}
Methods
__construct()
public
__construct(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
Return values
mixed —inject()
{@inheritdoc}
public
inject(object $injectee) : void
Attempts to inject the dependency into the marked property using the configured dependency id.
Parameters
- $injectee : object