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

getFactory() passes $this to abstract factory canCreate() #78

Closed
kynx opened this issue Jan 23, 2016 · 0 comments
Closed

getFactory() passes $this to abstract factory canCreate() #78

kynx opened this issue Jan 23, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@kynx
Copy link
Contributor

kynx commented Jan 23, 2016

See:
https://github.com/zendframework/zend-servicemanager/blob/develop/src/ServiceManager.php#L611

... but when the factory is invoked, it get's $this->creationContext.

I'm not sure if this is intentional or not, but it causes infinite loops when the abstract factory tries to do a $services->get('foo') inside it's canCreate(). See the fail at: zendframework/zend-inputfilter#86

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

No branches or pull requests

2 participants