By dawehner on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Introduced in version:
8.0.0-alpha14
Issue links:
Description:
The controller resolver class from Symfony allows you to inject parameters into a callable (a method on a class for example)
as well as construct instances of controller classes.
The later functionality got copied out:
$instance = \Drupal::service('class_resolver')->getInstanceFromClassName('Drupal\foo\Bar\Baz');
If this class implements ContainerInjectionInterface the create() method is called.
Impacts:
Module developers