EventDispatcherLaravel4   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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\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 EventDispatcherLaravel4 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