Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 Nov 2015 at 13:05 UTC
Updated:
17 Dec 2015 at 22:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dawehnerWhat is inside the Drupal container builder which requires that specific code to be there?
Comment #3
jhodgdonSo both of these are documented to be of type ContainerBuilder, but the documentation line says "the container"... it doesn't seem like the right documentation line.
I do not think I understand comment #2?
Comment #4
aneeshthankachan commented@jhodgdon; I have updated the
The container.toThe container builder.Comment #5
dawehnerThe comment #2 was basically about this line:
What is inside the Drupal container builder which is needed here?
Comment #6
cilefen commentedExpanding on #5, there is no reason to type the parameter as the Drupal implementation when the Symfony one would do. If \Drupal\Core\DependencyInjection\ContainerBuilder has expanded the interface in a way that is needed in this class then it should be the type used in the comment.
Comment #7
jhodgdonThanks for the patch! Sorry for delay in review -- I've been on vacation.
So both of these methods have the parameter typed in the function declaration as the Drupal container builder class. Given that, the @param changes in the docs are correct, since they agree with the code. If you want to change the code's declaration of the function (or the use statement at the top of the file), that would be a non-Documentation issue. But for this issue, I think the changes are correct.
Comment #8
jhodgdonCommitted this docs change to both 8.x branches. If you'd like to change the code, please file an issue in a non-documentation component. Thanks all!