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

[5.8] Configure application namespace while discovering events #28145

merged 2 commits into from Apr 9, 2019
Changes from 1 commit
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+5 −1
Diff settings


Just for now


configure application namespace while discovering events

  • Loading branch information...
themsaid committed Apr 9, 2019
commit c03f62ed499d7c1175923b929e82f6e361d85505
@@ -67,6 +67,10 @@ protected static function classFromFile(SplFileInfo $file, $basePath)
$class = trim(str_replace($basePath, '', $file->getRealPath()), DIRECTORY_SEPARATOR);
return str_replace(DIRECTORY_SEPARATOR, '\\', ucfirst(Str::replaceLast('.php', '', $class)));
return str_replace(
['\\', app()->getNamespace()],
ucfirst(Str::replaceLast('.php', '', $class))
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.