EventDispatcherLaravel5::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
/**
3
 * @package php-tmdb\laravel
4
 * @author Mark Redeman <[email protected]>
5
 * @copyright (c) 2014, Mark Redeman
6
 */
7
namespace Tmdb\Laravel\Adapters;
8
9
use Symfony\Component\EventDispatcher\EventDispatcherInterface as SymfonyDispatcher;
10
use Illuminate\Contracts\Events\Dispatcher as LaravelDispatcher;
11
12
/**
13
 * This adapter provides a Laravel integration for applications
14
 * using the Symfony EventDispatcherInterface
15
 * It passes any request on to a Symfony Dispatcher and only
16
 * uses the Laravel Dispatcher only when dispatching events
17
 */
18
class EventDispatcherLaravel5 extends EventDispatcherAdapter
19
{
20
    /**
21
     * Forward all methods to the Laravel Events Dispatcher
22
     * @param LaravelDispatcher $laravelDispatcher
23
     * @param SymfonyDispatcher $symfonyDispatcher
24
     */
25
    public function __construct(LaravelDispatcher $laravelDispatcher, SymfonyDispatcher $symfonyDispatcher)
26
    {
27
        $this->laravelDispatcher = $laravelDispatcher;
28
        $this->symfonyDispatcher = $symfonyDispatcher;
29
    }
30
}
31