Test Failed
Push — master ( d1151a...910c6c )
by Darko
03:15
created

EventDispatcherLaravel   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
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 EventDispatcherLaravel 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