VisithorBundle   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
c 2
b 0
f 1
lcom 0
cbo 2
dl 0
loc 26
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getContainerExtension() 0 4 1
A registerCommands() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the Visithor package.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 *
9
 * Feel free to edit as you please, and have fun.
10
 *
11
 * @author Marc Morera <[email protected]>
12
 */
13
14
namespace Visithor\Bundle;
15
16
use Symfony\Component\Console\Application;
17
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
18
use Symfony\Component\HttpKernel\Bundle\Bundle;
19
20
use Visithor\Bundle\DependencyInjection\VisithorExtension;
21
22
/**
23
 * Class VisithorBundle
24
 */
25
class VisithorBundle extends Bundle
26
{
27
    /**
28
     * Returns the bundle's container extension.
29
     *
30
     * @return ExtensionInterface The container extension
31
     */
32
    public function getContainerExtension()
33
    {
34
        return new VisithorExtension();
35
    }
36
37
    /**
38
     * Finds and registers Commands.
39
     *
40
     * Override this method if your bundle commands do not follow the conventions:
41
     *
42
     * * Commands are in the 'Command' sub-directory
43
     * * Commands extend Symfony\Component\Console\Command\Command
44
     *
45
     * @param Application $application An Application instance
46
     */
47
    public function registerCommands(Application $application)
48
    {
49
    }
50
}
51