Hi, folks!

There is some problem I can not solve. I have some code which I want to
wire up with zend-di. There are many classes which have constructor
parameter lets say UserRepository $userRepository.  UserRepository is an
interface, and there is DoctrineUserRepository. So I want somehow tell to
di-container it should use DoctrineUserRepository instead UserRepository
every time. For example I want sometimes call $di->get('UserRepository') or
I can make it as constructor parameter to another class - it doesnt matter.

Reply via email to