Problem/Motivation
#1942490: Make Twig engine available during install makes CoreBundle::registerTwig() public and static so that it can be reused in the installer. However, this is different from other methods on the CoreBundle and there's no indication of why, so someone might unwittingly try to revert this in the future.
Proposed resolution
Add a paragraph to the method docblock explaining why it is public and static.
Related Issues
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | document_corebundle_registertwig-1957042-10.patch | 651 bytes | kevin morse |
| #4 | document_corebundle_registertwig-1957042-4.patch | 570 bytes | foopang |
| #2 | document_corebundle_registertwig-1957042-2.patch | 571 bytes | foopang |
Comments
Comment #1
xjmComment #2
foopang commentedComment #3
xjmBit of trailing whitespace here.
Other than that, this is probably all we need! Thanks @foopang.
Comment #4
foopang commentedRemoved trailing whitespace and rerolled the patch. Thanks xjm for review.
Comment #5
fabianx commentedLooks good to me.
Comment #6
star-szrYup, looks good. Thanks @foopang!
Comment #7
jhodgdonThere's another patch that hits the CoreBundle.php file and is marked "avoid commit conflicts"... and it might have some bearing on this issue? In any case I'd wait to commit this patch until
#1939660: Use YAML as the primary means for service registration
is taken care of.
Comment #8
chx commentedYes, and in fact it adds a similar line although not the same, Once that's in we can freely wordsmith more. That patch bears the avoid commit conflicts tag because it's ahem, a bear to reroll :)
Comment #9
chx commentedDefinitely needs a reroll and perhaps the other installer comments in CoreBundle need wordsmithing too?
Comment #10
kevin morse commentedHere's a start with just that one comment changed.
This other line (below) doesn't really make sense to me either but then again I don't really know what's happening here.
Comment #11
fabianx commentedLooks good to me.
Comment #12
jhodgdonThanks all! Committed to 8.x.
Comment #13.0
(not verified) commentedUpdated issue summary.