-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix last old-style queue job fired by the core.
- Loading branch information
1 parent
8c90e7f
commit c9e8854
Showing
4 changed files
with
40 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace Illuminate\Foundation\Console; | ||
|
||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Illuminate\Contracts\Console\Kernel as KernelContract; | ||
|
||
class QueuedCommand implements ShouldQueue | ||
{ | ||
/** | ||
* The data to pass to the Artisan command. | ||
* | ||
* @var array | ||
*/ | ||
protected $data; | ||
|
||
/** | ||
* Create a new job instance. | ||
* | ||
* @param array $data | ||
* @return void | ||
*/ | ||
public function __construct($data) | ||
{ | ||
$this->data = $data; | ||
} | ||
|
||
/** | ||
* Handle the job. | ||
* | ||
* @param \Illuminate\Contracts\Console\Kernel $kernel | ||
* @return void | ||
*/ | ||
public function handle(KernelContract $kernel) | ||
{ | ||
call_user_func_array([$kernel, 'call'], $this->data); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters