/**
  * @param Extension        $extension
  * @param ContainerBuilder $container
  *
  * @return void
  */
 private function loadExtension(Extension $extension, ContainerBuilder $container)
 {
     if (!$container->getExtensionConfig($extension->getAlias())) {
         $extension->load([], $container);
     }
 }
Example #2
0
 /**
  * @param Extension $extension
  * @return string
  */
 public static function configPath(Extension $extension)
 {
     return $extension->getAlias() . '.' . JsmodelProviderPass::JS_CONFIG_POSTFIX;
 }