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

DependencyInjection not working for psr-4 modules #1570

Closed
craigh opened this issue Jan 25, 2014 · 7 comments
Closed

DependencyInjection not working for psr-4 modules #1570

craigh opened this issue Jan 25, 2014 · 7 comments
Milestone

Comments

@craigh
Copy link
Member

craigh commented Jan 25, 2014

Legal is psr-4 and when using the profiler, there is no indication that the container has the related information like container parameters and services

psr-0 modules seem to work properly

/cc @Drak @cmfcmf

@craigh craigh mentioned this issue Jan 25, 2014
23 tasks
@ghost
Copy link

ghost commented Jan 26, 2014

Is this the only PSR-4 based module that you are having difficulty with? What about the acme modules or others you may have refactoted?

@craigh
Copy link
Member Author

craigh commented Jan 26, 2014

No other module is both psr-4 and uses DI. I noticed it because I was working on a new module locally and couldn't get the DI to work. After I changed it from psr-4 to psr-0 it worked. Then I looked for the Legal stuff in the container (via the profiler) and couldn't find that either.

@cmfcmf
Copy link
Contributor

cmfcmf commented Jan 30, 2014

@craigh Try to clear your cache. This solved it for me. However, if this helps you too, we need to clear the cache whenever a new module is installed, and this is the real bug here.

@craigh
Copy link
Member Author

craigh commented Jan 30, 2014

clearing the cache makes no difference for me. 😦 The legal listener class is not shown in the profile container list
shot

@cmfcmf
Copy link
Contributor

cmfcmf commented Jan 30, 2014

bildschirmfoto vom 2014-01-30 22 47 16
😟

@craigh
Copy link
Member Author

craigh commented Jan 30, 2014

I tried updating composer, self-update, reinstall the module, etc. no changes for me.

php v5.4.19

@craigh
Copy link
Member Author

craigh commented Feb 16, 2014

I don't know why this didn't work before, but the problem seems to have "fixed itself" as I now can see the listing. 🎱

@craigh craigh closed this as completed Feb 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants