Skip to content
Permalink
Browse files

formatting and method name

  • Loading branch information
taylorotwell committed Jan 30, 2020
1 parent 9d67101 commit 8a3cdb0622047b1d94b4a754bfe98fb7dc1c174a
@@ -191,7 +191,7 @@ protected function pushCommandToQueue($queue, $command)
* @param mixed $handler
* @return void
*/
public function dispatchEventually($command, $handler = null)
public function dispatchAfterResponse($command, $handler = null)
{
$this->container->terminating(function () use ($command, $handler) {
$this->dispatchNow($command, $handler);
@@ -26,6 +26,16 @@ public static function dispatchNow()
return app(Dispatcher::class)->dispatchNow(new static(...func_get_args()));
}

/**
* Dispatch a command to its appropriate handler after the current process.
*
* @return mixed
*/
public static function dispatchAfterResponse()
{
return app(Dispatcher::class)->dispatchAfterResponse(new static(...func_get_args()));
}

/**
* Set the jobs that should run if this job is successful.
*
@@ -414,20 +414,6 @@ function dispatch_now($job, $handler = null)
}
}

if (! function_exists('dispatch_eventually')) {
/**
* Dispatch a command to its appropriate handler after the current process.
*
* @param mixed $job
* @param mixed $handler
* @return void
*/
function dispatch_eventually($job, $handler = null)
{
return app(Dispatcher::class)->dispatchEventually($job, $handler);
}
}

if (! function_exists('elixir')) {
/**
* Get the path to a versioned Elixir file.

0 comments on commit 8a3cdb0

Please sign in to comment.
You can’t perform that action at this time.