mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 08:39:09 +08:00
30 lines
550 B
PHP
30 lines
550 B
PHP
<?php
|
|
|
|
namespace App\Listeners;
|
|
|
|
use App\Events\ServerCreatedEvent;
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
class ServerCreatedListener
|
|
{
|
|
/**
|
|
* Create the event listener.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct()
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Handle the event.
|
|
*
|
|
* @param ServerCreatedEvent $event
|
|
* @return void
|
|
*/
|
|
public function handle(ServerCreatedEvent $event) {
|
|
info('listener', json_encode($event->serverLog));
|
|
}
|
|
} |