- Issue created by @AdamPS
Coming out of π Seriously consider respecting semantic versioning Active
#3 is a bit of a radical idea, however it could be something like this:
$service_ids
array of strings.create()
gets these services from the container, creates the object, then calls protected function inject()
passing array of services keyed by id. In case of derived classes, combine the arrays from all levels of the class hierarchy.inject()
default implementation saves to protected variable $services
.service($id)
gets the service - just like the Drupal::service()
function however with DI.Active
1.0
Code