|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
/* |
|
6
|
|
|
* This file is part of the Sonata Project package. |
|
7
|
|
|
* |
|
8
|
|
|
* (c) Thomas Rabaix <[email protected]> |
|
9
|
|
|
* |
|
10
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
11
|
|
|
* file that was distributed with this source code. |
|
12
|
|
|
*/ |
|
13
|
|
|
|
|
14
|
|
|
use Symfony\Cmf\Component\Testing\HttpKernel\TestKernel; |
|
15
|
|
|
use Symfony\Component\Config\Loader\LoaderInterface; |
|
16
|
|
|
|
|
17
|
|
|
class AppKernel extends TestKernel |
|
18
|
|
|
{ |
|
19
|
|
|
public function configure() |
|
20
|
|
|
{ |
|
21
|
|
|
$this->requireBundleSet('default'); |
|
22
|
|
|
|
|
23
|
|
|
$this->requireBundleSets(['phpcr_odm']); |
|
24
|
|
|
|
|
25
|
|
|
$this->addBundles([ |
|
26
|
|
|
new Sonata\BlockBundle\SonataBlockBundle(), |
|
27
|
|
|
new Sonata\CoreBundle\SonataCoreBundle(), |
|
28
|
|
|
new Sonata\AdminBundle\SonataAdminBundle(), |
|
29
|
|
|
new Knp\Bundle\MenuBundle\KnpMenuBundle(), |
|
30
|
|
|
new FOS\JsRoutingBundle\FOSJsRoutingBundle(), |
|
31
|
|
|
new Sonata\DoctrinePHPCRAdminBundle\SonataDoctrinePHPCRAdminBundle(), |
|
32
|
|
|
new Symfony\Cmf\Bundle\TreeBrowserBundle\CmfTreeBrowserBundle(), |
|
33
|
|
|
new Symfony\Cmf\Bundle\ResourceBundle\CmfResourceBundle(), |
|
34
|
|
|
new Symfony\Cmf\Bundle\ResourceRestBundle\CmfResourceRestBundle(), |
|
35
|
|
|
new JMS\SerializerBundle\JMSSerializerBundle(), |
|
36
|
|
|
]); |
|
37
|
|
|
} |
|
38
|
|
|
|
|
39
|
|
|
public function registerContainerConfiguration(LoaderInterface $loader) |
|
40
|
|
|
{ |
|
41
|
|
|
$loader->load(__DIR__.'/config/config.php'); |
|
42
|
|
|
$loader->load(__DIR__.'/config/admin-test.xml'); |
|
43
|
|
|
} |
|
44
|
|
|
} |
|
45
|
|
|
|