laravel / lumen-framework

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

Class 'Illuminate\Foundation\Bus\PendingChain' not found #1163

Closed djalmamanfrin closed 3 years ago

djalmamanfrin commented 3 years ago

Description:

I was trying to use Job Chaing to specify a list of queued jobs. Then I received the respective exception:. Looking into the 'Illuminate\Support\Facades\Bus' the chain method inform: * @method static \Illuminate\Foundation\Bus\PendingChain chain(array $jobs)

I looked for about the error and found the issue #1117. Maybe it has correlation.

Steps To Reproduce:

\Illuminate\Support\Facades\Bus::chain([
    new Job01(),
    new Job02()
->dispatch();
GrahamCampbell commented 3 years ago

Job chaining cannot be used outside of the main framework. It is not available in lumen or via direct installation of the illuminate package. You must use the whole framework.