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
|
|
|
new \Symfony\Cmf\Bundle\MediaBundle\CmfMediaBundle(), |
22
|
|
|
|
23
|
|
|
new \Sonata\BlockBundle\SonataBlockBundle(), |
24
|
|
|
new \Sonata\CoreBundle\SonataCoreBundle(), |
25
|
|
|
new \Symfony\Cmf\Bundle\BlockBundle\CmfBlockBundle(), |
26
|
|
|
|
27
|
|
|
new \Sylius\Bundle\AdminBundle\SyliusAdminBundle(), |
28
|
|
|
new \Sylius\Bundle\ShopBundle\SyliusShopBundle(), |
29
|
|
|
|
30
|
|
|
new \FOS\OAuthServerBundle\FOSOAuthServerBundle(), // Required by SyliusApiBundle |
31
|
|
|
new \Sylius\Bundle\ApiBundle\SyliusApiBundle(), |
32
|
|
|
]); |
33
|
|
|
} |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* {@inheritdoc} |
37
|
|
|
*/ |
38
|
|
|
public function registerContainerConfiguration(LoaderInterface $loader) |
39
|
|
|
{ |
40
|
|
|
$loader->load($this->getRootDir() . '/config/config.yml'); |
41
|
|
|
} |
42
|
|
|
} |
43
|
|
|
|