vendor/elements/demi-bundle/src/Elements/Bundle/DemiBundle/ElementsDemiBundle.php line 22

Open in your IDE?
  1. <?php
  2. /**
  3.  * Elements DeMI
  4.  *
  5.  * This source file is available under the elements DeMI license version 1
  6.  *
  7.  *  @copyright  Copyright (c) elements.at New Media Solutions GmbH (https://www.elements.at/)
  8.  *  @license    elements DeMI Lizenz Version 1 (https://www.elements.at/de/demi-lizenz)
  9.  */
  10. namespace Elements\Bundle\DemiBundle;
  11. use Elements\Demi\Init;
  12. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  13. use Pimcore\Extension\Bundle\Installer\InstallerInterface;
  14. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  15. /**
  16.  * Class ElementsDemiBundle
  17.  */
  18. class ElementsDemiBundle extends AbstractPimcoreBundle
  19. {
  20.     use PackageVersionTrait;
  21.     public function getDescription(): string
  22.     {
  23.         return 'Destination-Management-Integration';
  24.     }
  25.     public function getInstaller(): ?InstallerInterface
  26.     {
  27.         return $this->container->get(Installer::class);
  28.     }
  29.     public function getJsPaths(): array
  30.     {
  31.         $demiJsPaths $this->container->getParameter('elements_demi.bundle_config')['jsPaths'];
  32.         return array_merge(parent::getJsPaths(), $demiJsPaths);
  33.     }
  34.     public function getCssPaths(): array
  35.     {
  36.         $demiCssPaths $this->container->getParameter('elements_demi.bundle_config')['cssPaths'];
  37.         return array_merge(parent::getCssPaths(), $demiCssPaths);
  38.     }
  39.     public function boot(): void
  40.     {
  41.         parent::boot();
  42.         Init::cliInit();
  43.         \Elements\Demi\Deskline\Init::init();
  44.     }
  45.     protected function getComposerPackageName(): string
  46.     {
  47.         return 'elements/demi-bundle';
  48.     }
  49. }