Problem/Motivation
I think that the documentation comment for the $classResolver protected variable in MainContentViewSubscriber may be incorrect.
Steps to reproduce
Look at line 30 in Drupal/Core/EventSubscriber/MainContentViewSubscriber.php, where $classResolver is documented as \Drupal\Core\Controller\ControllerResolverInterface whereas I think maybe it should be Drupal\Core\DependencyInjection\ClassResolverInterface.
Proposed resolution
Update that documentation comment.
Remaining tasks
- Confirm whether it is true that this change should be made.
- Make the change.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3174570-3.patch | 634 bytes | quietone |
| #5 | After-patch-document.png | 60.93 KB | Madhu kumar |
| #4 | 3174570-applied_patch.png | 21.13 KB | abhijith s |
| #3 | 3174570-3.patch | 634 bytes | anmolgoyal74 |
Comments
Comment #2
cilefen commentedComment #3
anmolgoyal74 commentedComment #4
abhijith s commentedApplied patch #3 and it works fine.The documentation error is fixed in this patch.
RTBC +1
Comment #5
Madhu kumar commentedPatch #3 Applied cleanly and working as Expected , sharing screenshot for reference.
Comment #6
quietone commentedThe patch still applies to 9.3.x and the change looks correct to me.
@Abhijith S and Madhu kumar - thank you for looking into this issue. Posting screenshots of your codebase or CLI does not advance the issue, So, I've removed the issue credit for that screenshot. In the future, you can get credit for issues by reading the issue to understand its purpose, and posting your review or testing of that purpose. Thank you!
Comment #7
quietone commentedArg, the automatic testing is testing with 8.9.x not 9.3.x. I am re-uploading the patch to hopefully fix that.
Comment #10
spokjeBack to RTBC per #6 after #3255836: Test fails due to Composer 2.2 solved the unrelated test failure.
Comment #11
alexpottCommitted and pushed 5296e875c6d to 10.0.x and ca7158d4612 to 9.4.x and e537bf66d7c to 9.3.x. Thanks!