co-stack/dependency-injection-additions

Awesome additions for symfony/dependency-injection

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

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

GPL-3.0+ 8809a62215b2aa4479f68fb470176f030d35868c

  • Oliver Eglseder <oliver.eglseder.woop@co-stack.com>

This package is auto-updated.

Last update: 2026-06-21 00:27:43 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.