-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Add the ability to define services from other factories. The biggest use case for this would be for doctrine entity repositories.
$c->singleton(MyEntityRepository::class, function($c) {
return $c->get('em')->getRepository(MyEntity::class);
});
vs.
$c->serviceFactory(MyEntityRepository::class, 'em', 'getRepository', MyEntity::class);
Metadata
Metadata
Assignees
Labels
No labels