Class PHPStan\DependencyInjection\NonAutowiredService

final

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

The factory is a method of another service like '@App\MyFactory::create', or a static method like 'App\MyFactory::create'.

Works thanks to https://github.com/ondrejmirtes/composer-attribute-collector and AutowiredAttributeServicesExtension.

Methods