Factory
Table of Contents
Interfaces
- FactoryInterface
- Defines a contract for service factories that rely on a PSR-11 container for instantiation.
Classes
- AliasFactory
- A factory that resolves an alias to another service within a PSR-11 container.
- CallableFactory
- A factory that wraps a user-provided callable and executes it when invoked.
- InvokableFactory
- Factory responsible for instantiating a class with constructor arguments.
- MethodFactory
- A factory that invokes a specified method on a class using reflection and the PSR-11 container.
- ServiceFactory
- This factory wraps a predefined service instance and returns it directly upon invocation.