laravel / lumen-framework

The Laravel Lumen Framework.
https://lumen.laravel.com
MIT License
1.47k stars 419 forks source link

CommandFinished not working #1271

Closed toshimitsu-sato closed 1 year ago

toshimitsu-sato commented 1 year ago

Lumen Version

10.0

PHP Version

8.2.11

Database Driver & Version

No response

Description

illuminate/console/Application/ CommandFinished not working

CommandFinished, which is dispatched when the batch ends, is not fired. This is due to a fix made in response to laravel 10.

https://github.com/laravel/framework/pull/46508

Steps To Reproduce

  1. EventServiceProvider The following is written in

    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        CommandFinished::class => [
            CommandFinishedListener::class
        ]
    ];
  2. php artisan batch-name execution

  3. CommandFinishedListener::classnot call