VisithorBundle::getContainerExtension()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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