Thanks Matthew for your answer!

Little other questions about it..

Is it a performance difference between creating a controller factory in a
different class OR creating all in "getControllerConfig()" ?  
(http://www.zfdaily.com/2012/07/getting-dependencies-into-zf2-controllers/)

And last question.. ;-) Form should be injected too ?


Thanks for your answer!
Michael



--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/ZF2-Best-practice-to-get-service-in-controller-tp4661350p4661363.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com


Reply via email to