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

Wrong resolving file to classname during event discovering #28187

Closed
qem19 opened this issue Apr 11, 2019 · 1 comment
Closed

Wrong resolving file to classname during event discovering #28187

qem19 opened this issue Apr 11, 2019 · 1 comment

Comments

@qem19
Copy link

qem19 commented Apr 11, 2019

  • Laravel Version: 5.8.11
  • PHP Version: 7.2.15
  • Database Driver & Version: psql 10.5

Description:

My app path is 'src'
And when i want to turn on auto discovering events, laravel resolve my listener class as ' Src\Listeners...'
But my app has another namespace.
The reason is hardcoded App path in method 'classFromFile' of class DiscoverEvents

Steps To Reproduce:

@driesvints driesvints added bug and removed bug labels Apr 11, 2019
@driesvints
Copy link
Member

Heya. At the moment we only support auto-discovery for events in the app directory as this is the default for Laravel. If you have renamed your directory please manually register your events and listeners as before.

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

2 participants