ServiceManager configuration analysis tool
The purpose of this package is to make autowiring reliable (no
AoT is involved).
At the moment it makes sure that
ReflectionBasedAbstractFactory won't cause any runtime problems.
The tool can be added to your favorite
CI so to make sure there are no defects.
- Circular dependency
- Cyclic alias
- Missing factory
- Factory autoload failure
- Unresolvable service
- Unresolvable scalar
- Scalar type/name mismatch (WIP)
- Other scenarios of misconfiguration
Laminas/DI/AutowireFactory support will be coming soon.
Run the following to install this library:
$ composer require --dev laminas/laminas-servicemanager-inspector
No configuration is needed. All you need to do is to include
Module) to your application.
- Check if each and every app's root entrypoint (e.g. a class implementing
RequestHandlerInterface) has a proper factory