Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Proxy can not be created for services with circular dependencies #11

Closed
akomm opened this issue Dec 18, 2012 · 1 comment
Closed

Proxy can not be created for services with circular dependencies #11

akomm opened this issue Dec 18, 2012 · 1 comment
Assignees

Comments

@akomm
Copy link

akomm commented Dec 18, 2012

Class: OcraServiceManager\Proxy\ServiceProxyAbstractFactory

The creation of new proxies fails, if the corresponding service contains a circular dependency.

We never get back the service instance on line 132, because createRealService internal calls the create method of the Zend ServiceManager, which has a built-in circular dependency detection.

If such a dependency is detected, it throws an Zend\ServiceManager\Exception\CircularDependencyFoundException

@ghost ghost assigned Ocramius Dec 27, 2012
@Ocramius
Copy link
Owner

This is being handled in zendframework/zendframework#4146

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants