Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks with ZF 2.5+ #37

Open
tasmaniski opened this issue Apr 28, 2016 · 5 comments
Open

Breaks with ZF 2.5+ #37

tasmaniski opened this issue Apr 28, 2016 · 5 comments

Comments

@tasmaniski
Copy link

the file is created /cache/classes.php.cache,
but every request got error

PHP message: PHP Fatal error: Interface 'Interop\Container\ContainerInterface' not found

@tasmaniski tasmaniski changed the title Breaks with ZF 2.5 Breaks with ZF 2.5+ Apr 28, 2016
@dkmuir
Copy link

dkmuir commented May 2, 2016

What's Interop? AFAIK, Superluminal will only cache classes in the Zend namespace.

@tasmaniski
Copy link
Author

Yes, that is the bug. zend-servicemanager depend on "container-interop/container-interop" package. So it's not cached, but EdpSuperluminal try to get it.
Do you have an idea how to overcome this case?

@dkmuir
Copy link

dkmuir commented May 4, 2016

Hmm, but if the class is not in classes.php.cache, it should autoload. I keep having issues where the interfaces are included after implementing class, so the autoloader loads the interface, then blows up when it finds the interface a 2nd time in the cache. See issue #16.
You can try modifying Module.php line 54 to include classes starting with Interop to see if it helps.

@guilherme90
Copy link

guilherme90 commented Aug 8, 2017

@dkmuir and @tasmaniski

I have a same problem. How did they solve it?

@ronaldormelo
Copy link

Adicionei isso no Module.php na linha 54

// Skip non-Interop classes if (0 !== strpos($class, 'Interop')) { continue; }
E funcionou muito bem para a versão ZF 2.5.3

@ronaldormelo ronaldormelo mentioned this issue Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants