Seems to be a very basic question, but I can't find the answer (probably I'm thinking in the wrong direction):
My services are defined in a YML file.
PurchaseService:
class: Application_Service_Doctrine_PurchaseService
calls:
- [ setPurchaseRepository, [ @purchase.repository] ]
purchase.repository:
class: Application_Repository_Doctrine_PurchaseRepository
archive.repository:
class: Application_Repository_Doctrine_ArchiveRepository
In a certain case I want to inject archive.repository instead of purchase.repository. How? (Note: I'm not using the complete Symfony2 framework, just the DI Container within a Zend Framework project)