-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
56 additions
and
4 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,21 @@ | ||
<?php | ||
|
||
namespace App\Events; | ||
|
||
use App\Models\Acars; | ||
use App\Models\Pirep; | ||
|
||
class AcarsUpdate extends BaseEvent | ||
{ | ||
/** @var Pirep */ | ||
public $pirep; | ||
|
||
/** @var Acars */ | ||
public $acars; | ||
|
||
public function __construct(Pirep $pirep, Acars $acars) | ||
{ | ||
$this->pirep = $pirep; | ||
$this->acars = $acars; | ||
} | ||
} |
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,25 @@ | ||
<?php | ||
|
||
namespace Modules\Vacentral\Listeners; | ||
|
||
use App\Events\AcarsUpdate; | ||
use Illuminate\Support\Facades\Log; | ||
use VaCentral\Contracts\IVaCentral; | ||
|
||
class AcarsUpdateListener | ||
{ | ||
private $vacentral; | ||
|
||
public function __construct(IVaCentral $vacentral) | ||
{ | ||
$this->vacentral = $vacentral; | ||
} | ||
|
||
/** | ||
* @param AcarsUpdate $event | ||
*/ | ||
public function handle(AcarsUpdate $event) | ||
{ | ||
Log::info('Received acars update event', [$event]); | ||
} | ||
} |
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