-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[10.x] Added JobPopping and JobPopped events (#46220)
* Added JobPopping and JobPopped events * pr-46220 styleci * formatting * Update Worker.php --------- Co-authored-by: Taylor Otwell <[email protected]>
- Loading branch information
1 parent
3b7f6d0
commit 864d2e5
Showing
4 changed files
with
114 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Illuminate\Queue\Events; | ||
|
||
class JobPopped | ||
{ | ||
/** | ||
* The connection name. | ||
* | ||
* @var string | ||
*/ | ||
public $connectionName; | ||
|
||
/** | ||
* The job instance. | ||
* | ||
* @var \Illuminate\Contracts\Queue\Job|null | ||
*/ | ||
public $job; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param string $connectionName | ||
* @param \Illuminate\Contracts\Queue\Job|null $job | ||
* @return void | ||
*/ | ||
public function __construct($connectionName, $job) | ||
{ | ||
$this->connectionName = $connectionName; | ||
$this->job = $job; | ||
} | ||
} |
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,24 @@ | ||
<?php | ||
|
||
namespace Illuminate\Queue\Events; | ||
|
||
class JobPopping | ||
{ | ||
/** | ||
* The connection name. | ||
* | ||
* @var string | ||
*/ | ||
public $connectionName; | ||
|
||
/** | ||
* Create a new event instance. | ||
* | ||
* @param string $connectionName | ||
* @return void | ||
*/ | ||
public function __construct($connectionName) | ||
{ | ||
$this->connectionName = $connectionName; | ||
} | ||
} |
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