DIServiceFactoryΒΆ
Cupling ServiceManager And Di allows the library to provide a service factory to create class instances purely by dependency injection.
Example:
// Service config:
return [
'factories' => [
'MyService' => new \rampage\core\services\DIServiceFactory(ServiceImplementation::class);
]
];