Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Foundation\Console;
4
 
5
use Illuminate\Bus\Queueable;
6
use Illuminate\Contracts\Console\Kernel as KernelContract;
7
use Illuminate\Contracts\Queue\ShouldQueue;
8
use Illuminate\Foundation\Bus\Dispatchable;
9
 
10
class QueuedCommand implements ShouldQueue
11
{
12
    use Dispatchable, Queueable;
13
 
14
    /**
15
     * The data to pass to the Artisan command.
16
     *
17
     * @var array
18
     */
19
    protected $data;
20
 
21
    /**
22
     * Create a new job instance.
23
     *
24
     * @param  array  $data
25
     * @return void
26
     */
27
    public function __construct($data)
28
    {
29
        $this->data = $data;
30
    }
31
 
32
    /**
33
     * Handle the job.
34
     *
35
     * @param  \Illuminate\Contracts\Console\Kernel  $kernel
36
     * @return void
37
     */
38
    public function handle(KernelContract $kernel)
39
    {
40
        $kernel->call(...array_values($this->data));
41
    }
42
}