Completed
Push — master ( b1e789...396080 )
by Théo
11s
created

PsyshBundle   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
c 2
b 0
f 1
lcom 0
cbo 3
dl 0
loc 12
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 8 1
1
<?php
2
3
/*
4
 * This file is part of the PsyshBundle package.
5
 *
6
 * (c) Théo FIDRY <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Fidry\PsyshBundle;
13
14
use Fidry\PsyshBundle\DependencyInjection\Psysh;
15
use Psy\Shell;
16
use Symfony\Component\HttpKernel\Bundle\Bundle;
17
18
/**
19
 * @author Adrian PALMER <[email protected]>
20
 * @author Théo FIDRY    <[email protected]>
21
 */
22
final class PsyshBundle extends Bundle
23
{
24 6
    public function boot()
25
    {
26 6
        parent::boot();
27
28
        /* @var Shell $shell */
29 6
        $shell = $this->container->get('psysh.shell');
30 6
        Psysh::init($shell);
31 6
    }
32
33
}
34