Feature request from ldusan84, posted on GitHub May 02, 2016
There is a hidden dependency in https://github.com/magento/magento2/blob/develop/app/code/Magento/Sales/Controller/Adminhtml/Order/A...
It is not obvious that the child class requires collectionFactory to be injected so it's not transparent which objects are needed for this class to work.
I tried to create a PR for this, by moving the collection factory to constructor, but the problem is that for example this class:
Requires Magento\Sales\Model\ResourceModel\Order\Collection and this one:
These two don't have the same parent class or interface, so it seems that it's not possible to type hint.
Comment from piotrekkaminski, posted on GitHub May 11, 2016
@maksek please redirect to proper person
Comment from NadiyaS, posted on GitHub May 18, 2016
Hi @ldusan84 ,
thank you for reporting this issue. Internal ticket was created MAGETWO-52955 to consider this problem.