co-stack/dependency-injection-additions

Awesome additions for symfony/dependency-injection

Maintainers

Package info

gitlab.com/co-stack.com/co-stack.com/php-packages/dependency-injection-additions

Issues

pkg:composer/co-stack/dependency-injection-additions

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

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

This package is auto-updated.

Last update: 2026-03-21 00:01:18 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.