zendframework/zf2 — comment on commit 42cb62ca4439b4107a69b6ddd535c5d9e01656a2
File: library/Zend/Mvc/Controller/ActionController.php line 24
By rafalwrzeszcz:

Just a loose idea - shouldn't `ActionController` and `RestfulController` have common base class (let's say `AbstractController`)?

- There is a lot of duplicated code, code it would reduce codebase and make it simpler to change both classes behavior when needed.
- It would be possible to implement injection based on base class in DI for both kind of controllers (for example plugin broker etc).