-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does debug extension need the controller? #3563
Comments
@SeriousKen is it causing any problems to have it there? |
@LukeTowers It's not causing a problem as such, but I noticed it when looking into this issue in the Pages plugin. The Twig environment is newed up in the CmsCompoundObject without the DebugExtension, but you can't new up the DebugExtension without a controller instance, which the CmsCompoundObject doesn't have access to. Also, in the interests of clean code, anything that is redundant should be removed. |
@Samuell1 I'll leave this open. It's something that may need to be looked into in the future. |
@bennothommo it was just ping if this is actual, i can then do PR to remove it, because there is still label response needed. |
@Samuell1 by all means, have a go at it if you want to :). Probably is worth having a look at. |
This issue will be closed and archived in 3 days, as there has been no activity in the last 30 days. If this issue is still relevant or you would like to see action on it, please respond and we will get the ball rolling. |
october/modules/cms/twig/DebugExtension.php
Lines 54 to 61 in 8ba63dd
The debug extension requires the controller in its constructor but doesn't reference it anywhere. Should this be refactored out?
The text was updated successfully, but these errors were encountered: