Completed
Push — master ( 396080...e991d3 )
by Théo
04:21
created

PsyshBundle::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
crap 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