Alexander Makarov
Alexander Makarov
I think it's not the best idea. While base controller might be convenient, I think it's much better to have a set of traits in `yii-web` such as `ViewRendererConventionTrait` that...
Yes, good question. Overall, idea of base controller is controversial: https://twitter.com/sam_dark/status/1227328185680977921 To me, it's convenient and I don't see any critical drawbacks despite it being formally not correct.
Yes, we can wait with this one. Another possibility from that Twitter thread is to wrap view-resolving into its own class and inject it as a dependency i.e. ControllerView that...
That's same discussion I had on Twitter: https://github.com/yiisoft/yii-demo/issues/53#issuecomment-585353951. If we can achieve convenience without abstract controller, that will be ideal. If not — abstract controller isn't *that* bad.
Oh, wow! Thank you for working on it but please note that guide is work in progress and is adjusted constantly.
Yes. I think it is handy to have.
@terabytesoftw still want to do it?
https://github.com/Roave/psr-container-doctrine could be handy.
Well, I guess it could be solved by agreeing and committing c3?