PropertyInjector
in package
implements
PropertyInjectorInterface
FinalYes
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.
Table of Contents
Interfaces
- PropertyInjectorInterface
Methods
- __construct() : mixed
- inject() : void
- {@inheritdoc}
Methods
__construct()
public
__construct(ContainerInterface $container) : mixed
Parameters
- $container : ContainerInterface
inject()
{@inheritdoc}
public
inject(object $injectee) : void
Attempts to inject the dependency into the marked property using the configured dependency id.
Parameters
- $injectee : object