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

EventServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
ccs 0
cts 4
cp 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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
}