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

LaravelS 3.7.37 Optimized the call of schedule:run command Issue #461

Closed
DevilSerj opened this issue Dec 11, 2023 · 1 comment
Closed

LaravelS 3.7.37 Optimized the call of schedule:run command Issue #461

DevilSerj opened this issue Dec 11, 2023 · 1 comment
Assignees
Labels
analyzing Analyzing this issue

Comments

@DevilSerj
Copy link

  1. Your software version (Screenshot of your startup)

+---------------------------+-----------+
| Component | Version |
+---------------------------+-----------+
| PHP | 8.1.20RC1 |
| Swoole | 5.1.1 |
| LaravelS | 3.7.37 |
| Laravel Framework [local] | 9.30.0 |
+---------------------------+-----------+

  1. Detail description about this issue(error/log)
    Target class [swoole] does not exist in application's command schedule.

Target class [swoole] does not exist. {"exception":"[object] (Illuminate\Contracts\Container\BindingResolutionException(code: 0): Target class [swoole] does not exist. at /var/www/vendor/laravel/framework/src/Illuminate/Container/Container.php:877)

  1. Some reproducible code blocks and steps
    protected function schedule(Schedule $schedule)
    {
    // $schedule->command('inspire')->hourly();
    $schedule->call(function () {
    OnlineGame::pushOnlineAll();
    })->everyMinute();
    }
@DevilSerj DevilSerj added the analyzing Analyzing this issue label Dec 11, 2023
@hhxsv5
Copy link
Owner

hhxsv5 commented Dec 18, 2023

这个在之前版本应该也是不行的

@hhxsv5 hhxsv5 closed this as completed Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzing Analyzing this issue
Projects
None yet
Development

No branches or pull requests

2 participants