Namespace PHPStan\DependencyInjection

Classes
AutowiredParameter

Autowires constructor parameters in service classes using #[AutowiredService], #[GenerateFactory], #[RegisteredRule] or #[RegisteredCollector] attributes.

AutowiredService

Registers a service in the DI container.

Conditional

Registers the class with the wrapped attribute, but adds the tags only when the condition is met: the rule tag for RegisteredRule, the collector tag for RegisteredCollector, and the tags of the implemented extension interfaces for AutowiredService. The service is always registered so that it can still be autowired.

ContainerFactory
ExtensionInterface

Marks an extension interface and associates it with its service tag.

GenerateFactory

Generates concrete factory implementation based on the passed interface name.

NonAutowiredService

Registers a non-autowired named service in the DI container.

RegisteredCollector

Registers a collector in the DI container on the set rule level.

RegisteredRule

Registers a rule in the DI container on the set rule level.

Interfaces
Container