functions.php
TLDR
This file defines a global function called queueable
in the Illuminate\Events
namespace. This function creates a new queued Closure event listener.
Methods
queueable
Create a new queued Closure event listener.
- Parameters:
-
$closure
: A Closure that will be queued as an event listener.
-
- Returns: An instance of the
Illuminate\Events\QueuedClosure
class.
Classes
None
<?php
namespace Illuminate\Events;
use Closure;
if (! function_exists('Illuminate\Events\queueable')) {
/**
* Create a new queued Closure event listener.
*
* @param \Closure $closure
* @return \Illuminate\Events\QueuedClosure
*/
function queueable(Closure $closure)
{
return new QueuedClosure($closure);
}
}