Closed smhg closed 9 months ago
@smhg maybe zend-controller
was listed in required dependencies, because it's tightly coupled with Zend_View_Helper_Action
which tends to be used a lot? 🤔
But on the other hand, to make it in line with other view helpers, all dependencies used by them should be optional 🤔 And that is what you did. The action
helper doesn't deserve a special treatment, does it?
@falkenhawk
FWIW: in my project Zend_View is used for email template rendering, independent of Zend_Controller. It is probably not common usage.
But I do think coupling should be on the loose side. Because in the end, projects should likely be refactoring away from ZF1 and thus it is useful to require only the absolute minimum rather than the safe maximum.
And, when using zf1s as a zf1 replacement, what you are looking for includes 'less coupling' probably?
Also, specifically in the Zend_Controller case, I think it must be quite uncommon to only specify Zend_View in your project and count on it including Zend_Controller, no?
Feel free to disagree of course.
I've listed everything used in view helpers under
suggest
.That means a lot of additions, but also that
Zend_Controller
andZend_Locale
are no longer required dependencies. I can't imagine both are not installed explicitly when needed, but feel free to disagree of course.closes #176