Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Foundation\Bus;
4
 
5
use Illuminate\Contracts\Bus\Dispatcher;
6
 
7
trait DispatchesJobs
8
{
9
    /**
10
     * Dispatch a job to its appropriate handler.
11
     *
12
     * @param  mixed  $job
13
     * @return mixed
14
     */
15
    protected function dispatch($job)
16
    {
17
        return app(Dispatcher::class)->dispatch($job);
18
    }
19
 
20
    /**
21
     * Dispatch a job to its appropriate handler in the current process.
22
     *
23
     * @param  mixed  $job
24
     * @return mixed
25
     *
26
     * @deprecated Will be removed in a future Laravel version.
27
     */
28
    public function dispatchNow($job)
29
    {
30
        return app(Dispatcher::class)->dispatchNow($job);
31
    }
32
 
33
    /**
34
     * Dispatch a job to its appropriate handler in the current process.
35
     *
36
     * Queueable jobs will be dispatched to the "sync" queue.
37
     *
38
     * @param  mixed  $job
39
     * @return mixed
40
     */
41
    public function dispatchSync($job)
42
    {
43
        return app(Dispatcher::class)->dispatchSync($job);
44
    }
45
}