]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/AppKernel.php
Adds Webpack support and removes the use for Grunt
[github/wallabag/wallabag.git] / app / AppKernel.php
index 342bd1393e0b30ab31a66271f40b00e4d9cb9034..b9293498ff60ccf14079e51d217baf48ebb4b617 100644 (file)
@@ -30,6 +30,8 @@ class AppKernel extends Kernel
             new Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle(),
             new Craue\ConfigBundle\CraueConfigBundle(),
             new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
+            new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
+            new BD\GuzzleSiteAuthenticatorBundle\BDGuzzleSiteAuthenticatorBundle(),
 
             // wallabag bundles
             new Wallabag\CoreBundle\WallabagCoreBundle(),
@@ -69,5 +71,14 @@ class AppKernel extends Kernel
     public function registerContainerConfiguration(LoaderInterface $loader)
     {
         $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
+        $loader->load(function ($container) {
+           if ($container->getParameter('use_webpack_dev_server')) {
+               $container->loadFromExtension('framework', [
+                   'assets' => [
+                       'base_url' => 'http://localhost:8080/',
+                   ],
+               ]);
+           }
+        });
     }
 }