Add listeners either for http requests or console requests.

Advanced dependency injection for zend framework