vendor/reaze/headless/src/ReazeHeadlessBundle.php line 15

Open in your IDE?
  1. <?php
  2. namespace Reaze\HeadlessBundle;
  3. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  4. use Pimcore\Extension\Bundle\Installer\InstallerInterface;
  5. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  6. use Reaze\HeadlessBundle\Installer\Installer;
  7. /**
  8.  * Class ReazeHeadlessBundle
  9.  *
  10.  * @package Reaze\HeadlessBundle
  11.  */
  12. class ReazeHeadlessBundle extends AbstractPimcoreBundle
  13. {
  14.     use PackageVersionTrait;
  15.     /**
  16.      * @return InstallerInterface
  17.      */
  18.     public function getInstaller(): object
  19.     {
  20.         return $this->container->get(Installer::class);
  21.     }
  22.     /**
  23.      * @return string[]
  24.      */
  25.     public function getJsPaths(): array
  26.     {
  27.         return [
  28.             '/bundles/reazeheadless/js/pimcore/startup.js',
  29.             '/bundles/reazeheadless/js/pimcore/document/pages/preview.js',
  30.         ];
  31.     }
  32.     /**
  33.      * @return string[]
  34.      */
  35.     public function getEditmodeCssPaths(): array
  36.     {
  37.         return [
  38.             '/bundles/reazeheadless/bootstrap/css/bootstrap.min.css',
  39.         ];
  40.     }
  41.     /**
  42.      * @return string[]
  43.      */
  44.     public function getEditmodeJsPaths(): array
  45.     {
  46.         return [
  47.             '/bundles/reazeheadless/bootstrap/js/bootstrap.min.js',
  48.         ];
  49.     }
  50.     /**
  51.      * @return string
  52.      */
  53.     protected function getComposerPackageName(): string
  54.     {
  55.         return 'reaze/headless';
  56.     }
  57. }