Search by

co-stack / dependency-injection-additions

VerteXVaaRco-stack

Awesome additions for symfony/dependency-injection

v1.0.1 2026-03-21 00:58 UTC

This package is auto-updated.

Last update: 2026-08-21 00:52:02 UTC


README

About

This package contains awesome, ready-to-use, out-of-the-box, features built on top of symfony/dependency-injection. These features extend the default feature set of the DI container.

Features

InjectionAware

Implement the interface \CoStack\DependencyInjectionAdditions\InjectionAware\InjectionAware. The method __injected will be called automatically after all dependencies were injected.

When using __construct to initialize an object, only constructor injections are available. With __injected, all dependencies were injected (constructor, property, method) and are available.

This effectively allows ditching the constructor injection.