public function initJs()
 {
     $renderer = new ScriptTag();
     $urlDecorator = new Cdn(new Base());
     $urlDecorator->setBaseUrl('localhost:8080/');
     $renderer->setUrlDecorator($urlDecorator);
     return $renderer->render($this->loader->buildContainer());
 }
 /**
  * @Route("/sjs/{batch}.js")
  */
 public function jsAction($batch)
 {
     $optimizer = new Optimizer($this->get('eberhm.phoenix.loader')->getConfig());
     return new Response($optimizer->optimizeFiles(Loader::getInstance()->translateBatch($batch)));
 }