this should be done lazyly (in the closure defining the service, or using ``$app->extend`` to augment the closure)