diff options
Diffstat (limited to 'app/AppKernel.php')
-rw-r--r-- | app/AppKernel.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/AppKernel.php b/app/AppKernel.php index c8382d5f..b9293498 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php | |||
@@ -71,5 +71,14 @@ class AppKernel extends Kernel | |||
71 | public function registerContainerConfiguration(LoaderInterface $loader) | 71 | public function registerContainerConfiguration(LoaderInterface $loader) |
72 | { | 72 | { |
73 | $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); | 73 | $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); |
74 | $loader->load(function ($container) { | ||
75 | if ($container->getParameter('use_webpack_dev_server')) { | ||
76 | $container->loadFromExtension('framework', [ | ||
77 | 'assets' => [ | ||
78 | 'base_url' => 'http://localhost:8080/', | ||
79 | ], | ||
80 | ]); | ||
81 | } | ||
82 | }); | ||
74 | } | 83 | } |
75 | } | 84 | } |