AppKernel::isClassInActiveBundle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of Sulu.
5
 *
6
 * (c) MASSIVE ART WebServices GmbH
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
use Symfony\Component\Config\Loader\LoaderInterface;
13
use Symfony\Component\HttpKernel\Kernel;
14
15
/**
16
 * AppKernel for functional tests.
17
 */
18
class AppKernel extends Kernel
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function registerBundles()
24
    {
25
        return [
26
            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
27
            new \ONGR\ElasticsearchBundle\ONGRElasticsearchBundle(),
28
            new Sulu\Bundle\ElasticsearchActivityLogBundle\ElasticsearchActivityLogBundle(),
29
        ];
30
    }
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function registerContainerConfiguration(LoaderInterface $loader)
36
    {
37
        $loader->load(__DIR__ . '/config/config.yml');
38
    }
39
40
    /**
41
     * Checks if a given class name belongs to an active bundle.
42
     *
43
     * @param string $class A class name
44
     *
45
     * @return bool true if the class belongs to an active bundle, false otherwise
46
     *
47
     * @deprecated since version 2.6, to be removed in 3.0.
48
     */
49
    public function isClassInActiveBundle($class)
0 ignored issues
show
Unused Code introduced by
The parameter $class is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
50
    {
51
        return true;
52
    }
53
}
54