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.

Files: 
CommentFileSizeAuthor
fix_containerinjectioninterface_comment.patch702 bytesWim Leers
PASSED: [[SimpleTest]]: [MySQL] 59,194 pass(es).
[ View ]

Comments

Component:base system» routing system

.

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

.

Issue tags:+documention

+1 on it!

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.