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

[11.x] Fix for not automatically registering commands in App\Console\Commands #52903

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

SamuelNitsche
Copy link
Contributor

@SamuelNitsche SamuelNitsche commented Sep 24, 2024

PR #52867 introduced a Bug #52902 when registering commands using both the routes/console.php and app/Commands namespace.

This PR fixes the bug by simply merging the commands found.
Again, unfortunately no tests.

@rodrigopedra
Copy link
Contributor

Thanks!

Was about to send the same PR, just ended running the local tests =)

@devajmeireles
Copy link
Contributor

@taylorotwell Could you please take a look into this? We need this as soon as possible. Without it, no custom commands can be executed, making it impossible to use the latest version.

@crynobone crynobone merged commit d76b2f1 into laravel:11.x Sep 25, 2024
33 checks passed
crynobone added a commit that referenced this pull request Sep 26, 2024
crynobone added a commit that referenced this pull request Sep 26, 2024
crynobone added a commit that referenced this pull request Sep 26, 2024
…e breaking change with the default `withRouting($console)` (#52939)

* Revert "Fix for not automatically registering commands in App\Console\Commands (#52903)"

This reverts commit d76b2f1.

* Revert "Auto-Register Commands in `routes/console.php` (#52867)"

This reverts commit e216708.
taylorotwell pushed a commit that referenced this pull request Sep 26, 2024
…e breaking change with the default `withRouting($console)` (#52942)

* Revert "Fix for not automatically registering commands in App\Console\Commands (#52903)"

This reverts commit d76b2f1.

* Revert "Auto-Register Commands in `routes/console.php` (#52867)"

This reverts commit e216708.
@crynobone
Copy link
Member

@SamuelNitsche this PR has been reverted due to breaking change with existing application.

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

Successfully merging this pull request may close these issues.

[11.x] After Laravel 11.24.0 commands in app/Console/Commands are not auto-registered
4 participants