Passed
Push — master ( ac3ce9...4824e6 )
by Alexey
04:00
created

EventServiceProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A bind() 0 4 1
1
<?php declare(strict_types = 1);
2
3
namespace Venta\Framework\ServiceProvider;
4
5
use Venta\Contracts\Container\MutableContainer;
6
use Venta\Contracts\Event\EventDispatcher;
7
use Venta\Framework\Event\EventDispatcher as ContainerAwareEventDispatcher;
8
use Venta\ServiceProvider\AbstractServiceProvider;
9
10
/**
11
 * Class EventDispatcherServiceProvider
12
 *
13
 * @package Venta\Framework
14
 */
15
final class EventServiceProvider extends AbstractServiceProvider
16
{
17
    /**
18
     * @inheritDoc
19
     */
20
    public function bind(MutableContainer $container)
21
    {
22
        $container->bind(EventDispatcher::class, ContainerAwareEventDispatcher::class);
23
    }
24
}