Completed
Push — tests-organisation ( e0cc56...d1374b )
by Kamil
20:01
created

AppKernel   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 15

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 15
dl 0
loc 18
rs 9.1666
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 12 1
1
<?php
2
3
/*
4
 * This file is part of the Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
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
use Sylius\Bundle\CoreBundle\Application\Kernel;
13
14
/**
15
 * @author Paweł Jędrzejewski <[email protected]>
16
 * @author Gonzalo Vilaseca <[email protected]>
17
 */
18
class AppKernel extends Kernel
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function registerBundles()
24
    {
25
        $bundles = [
26
            new \Sylius\Bundle\AdminBundle\SyliusAdminBundle(),
27
            new \Sylius\Bundle\ShopBundle\SyliusShopBundle(),
28
29
            new \FOS\OAuthServerBundle\FOSOAuthServerBundle(), // Required by SyliusApiBundle.
30
            new \Sylius\Bundle\ApiBundle\SyliusApiBundle(),
31
        ];
32
33
        return array_merge(parent::registerBundles(), $bundles);
34
    }
35
}
36