diff options
Diffstat (limited to 'app/AppKernel.php')
-rw-r--r-- | app/AppKernel.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/AppKernel.php b/app/AppKernel.php index c8382d5f..c50783a6 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php | |||
@@ -48,6 +48,10 @@ class AppKernel extends Kernel | |||
48 | $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); | 48 | $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); |
49 | $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); | 49 | $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); |
50 | $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(); | 50 | $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(); |
51 | |||
52 | if ('test' === $this->getEnvironment()) { | ||
53 | $bundles[] = new DAMA\DoctrineTestBundle\DAMADoctrineTestBundle(); | ||
54 | } | ||
51 | } | 55 | } |
52 | 56 | ||
53 | return $bundles; | 57 | return $bundles; |
@@ -71,5 +75,14 @@ class AppKernel extends Kernel | |||
71 | public function registerContainerConfiguration(LoaderInterface $loader) | 75 | public function registerContainerConfiguration(LoaderInterface $loader) |
72 | { | 76 | { |
73 | $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); | 77 | $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); |
78 | $loader->load(function ($container) { | ||
79 | if ($container->getParameter('use_webpack_dev_server')) { | ||
80 | $container->loadFromExtension('framework', [ | ||
81 | 'assets' => [ | ||
82 | 'base_url' => 'http://localhost:8080/', | ||
83 | ], | ||
84 | ]); | ||
85 | } | ||
86 | }); | ||
74 | } | 87 | } |
75 | } | 88 | } |