ContainerInjectionInterface.php has this:

/**
 * @file
 * Contains \Drupal\Core\Controller\ContainerInjectionInterface.
 */

Rather than the correct version, which is:

/**
 * @file
 * Contains \Drupal\Core\DependencyInjection\ContainerInjectionInterface.
 */

So, just copy/pasting this for a "use" statement won't work.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers’s picture

Component: base system » routing system

.

Wim Leers’s picture

Title: ContainerInjectionInterface comment is wrong, causing developers to use the wrong use statement » ContainerInjectionInterface comment is wrong, causing developers to use the wrong "use" statement

.

andypost’s picture

Issue tags: +documention

+1 on it!

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Awesome, thank you!

Committed and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.