This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
queue worker built event added
- Loading branch information
Robert Kummer
committed
Nov 28, 2019
1 parent
1727328
commit 0b9be15
Showing
3 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
app/Blueprint/Infrastructure/Service/Events/QueueWorkerBuiltEvent.php
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,46 @@ | ||
<?php | ||
|
||
namespace Rancherize\Blueprint\Infrastructure\Service\Events; | ||
|
||
use Rancherize\Blueprint\Infrastructure\Service\Services\LaravelQueueWorker; | ||
use Rancherize\Configuration\Configuration; | ||
use Symfony\Component\EventDispatcher\Event; | ||
|
||
class QueueWorkerBuiltEvent extends Event | ||
{ | ||
const NAME = 'queue.worker.built'; | ||
|
||
/** @var \Rancherize\Blueprint\Infrastructure\Service\Services\LaravelQueueWorker */ | ||
private $queueWorker; | ||
/** @var \Rancherize\Configuration\Configuration */ | ||
private $environmentConfiguration; | ||
/** @var \Rancherize\Configuration\Configuration */ | ||
private $queueConfiguration; | ||
|
||
public function __construct( | ||
LaravelQueueWorker $queueWorker, | ||
Configuration $environmentConfiguration, | ||
Configuration $queueConfiguration | ||
) { | ||
$this->queueWorker = $queueWorker; | ||
$this->environmentConfiguration = $environmentConfiguration; | ||
$this->queueConfiguration = $queueConfiguration; | ||
} | ||
|
||
public function getQueueWorker(): \Rancherize\Blueprint\Infrastructure\Service\Services\LaravelQueueWorker | ||
{ | ||
return $this->queueWorker; | ||
} | ||
|
||
public function getEnvironmentConfiguration(): \Rancherize\Configuration\Configuration | ||
{ | ||
return $this->environmentConfiguration; | ||
} | ||
|
||
public function getQueueConfiguration(): \Rancherize\Configuration\Configuration | ||
{ | ||
return $this->queueConfiguration; | ||
} | ||
|
||
|
||
} |
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