Completed
Pull Request — master (#1)
by Kamil
07:23
created

AppKernel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 12

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 12
dl 0
loc 32
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A registerBundles() 0 18 1
A registerContainerConfiguration() 0 4 1
1
<?php
2
3
use Sylius\Bundle\CoreBundle\Application\Kernel;
4
use Symfony\Component\Config\Loader\LoaderInterface;
5
6
final class AppKernel extends Kernel
7
{
8
    /**
9
     * {@inheritdoc}
10
     */
11
    public function registerBundles()
12
    {
13
        return array_merge([
14
            new \Lakion\SyliusCmsBundle\LakionSyliusCmsBundle(),
15
        ], parent::registerBundles(), [
16
            new \Doctrine\Bundle\PHPCRBundle\DoctrinePHPCRBundle(),
17
            new \Symfony\Cmf\Bundle\CoreBundle\CmfCoreBundle(),
18
            new \Symfony\Cmf\Bundle\ContentBundle\CmfContentBundle(),
19
            new \Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(),
20
            new \Symfony\Cmf\Bundle\MenuBundle\CmfMenuBundle(),
21
22
            new \Sylius\Bundle\AdminBundle\SyliusAdminBundle(),
23
            new \Sylius\Bundle\ShopBundle\SyliusShopBundle(),
24
25
            new \FOS\OAuthServerBundle\FOSOAuthServerBundle(), // Required by SyliusApiBundle
26
            new \Sylius\Bundle\ApiBundle\SyliusApiBundle(),
27
        ]);
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function registerContainerConfiguration(LoaderInterface $loader)
34
    {
35
        $loader->load($this->getRootDir() . '/config/config.yml');
36
    }
37
}
38