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

Composer error with HookListener #6

Closed
koertho opened this issue Oct 8, 2018 · 3 comments
Closed

Composer error with HookListener #6

koertho opened this issue Oct 8, 2018 · 3 comments

Comments

@koertho
Copy link

koertho commented Oct 8, 2018

Hi, when I install your bundle, everytime I open my site I get an error: Attempted to load class "HookListener" from namespace "Hypergalaktisch\ParallaxBundle\EventListener". Did you forget a "use" statement for e.g. "Hypergalaktisch\ParallaxBundle\Eventlistener\HookListener"
The event listener is called in the parseTemplate Hook, so even the backend doesn't work anymore.

There seems to be an error with the composer autoload configuration. It works, if I use the optimized autoloader (composer dumpautoload -o).

Contao Version 4.4.26
Symfony Version 3.4.17

Edit: I see there were already some issues with this problem. But I haven't found a solution yet.

@hypergalaktisch
Copy link
Owner

I tryed to figure out the solution, but i couldn't reproduce the error after last update. I'll try again with given hints.

@OMOSde
Copy link

OMOSde commented Dec 29, 2018

I had the same issue in a 4.4.32 installation. I found out that the directory name src/Eventlistener should be src/EventListener. After these change the problem with the autoloader is gone.

@hypergalaktisch
Copy link
Owner

Hopefully it's solved now with 2.0.4

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

3 participants