src/AppBundle.php line 9

Open in your IDE?
  1. <?php
  2. namespace App;
  3. use App\Installer\AppInstaller;
  4. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  5. use Sintra\CMSCoreBundle\Scripts\ResourceBundle;
  6. class AppBundle extends AbstractPimcoreBundle implements ResourceBundle
  7. {
  8.     public function getInstaller()
  9.     {
  10.         return $this->container->get(AppInstaller::class);
  11.     }
  12.     function  getCssFiles()
  13.     {
  14.         return [];
  15.     }
  16.     function  getJSFiles()
  17.     {
  18.         $scripts=[
  19.             array( 'type'=>"link"'data'=>"https://unpkg.com/apollo-client-browser@1.9.0"),
  20.             array( 'type'=>"link"'data'=>"https://unpkg.com/vue-apollo@2.1.0-beta.19"),
  21.             array( 'type'=>"link"'data'=>"https://cdnjs.cloudflare.com/ajax/libs/axios/0.27.2/axios.min.js"),
  22.             array( 'type'=>"link"'data'=>"https://cdnjs.cloudflare.com/ajax/libs/bootstrap-vue/2.22.0/bootstrap-vue.min.js")
  23.        ];
  24.        
  25.        return $scripts;
  26.     }
  27.  
  28. }