D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
3023067
/
root
/
home
/
dateitor
/
www
/
vendor
/
stancl
/
tenancy
/
src
/
Listeners
/
Filename :
QueueableListener.php
back
Copy
<?php declare(strict_types=1); namespace Stancl\Tenancy\Listeners; use Illuminate\Contracts\Queue\ShouldQueue; /** * @method handle(object $event) */ abstract class QueueableListener implements ShouldQueue { public static $shouldQueue = false; public function shouldQueue($event) { if (static::$shouldQueue) { return true; } else { // The listener is not queued so we manually // pass the event to the handle() method. $this->handle($event); return false; } } }