<?php
/**
* Elements DeMI
*
* This source file is available under the elements DeMI license version 1
*
* @copyright Copyright (c) elements.at New Media Solutions GmbH (https://www.elements.at/)
* @license elements DeMI Lizenz Version 1 (https://www.elements.at/de/demi-lizenz)
*/
namespace Elements\Bundle\DemiBundle;
use Elements\Demi\Init;
use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
use Pimcore\Extension\Bundle\Installer\InstallerInterface;
use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
/**
* Class ElementsDemiBundle
*/
class ElementsDemiBundle extends AbstractPimcoreBundle
{
use PackageVersionTrait;
public function getDescription(): string
{
return 'Destination-Management-Integration';
}
public function getInstaller(): ?InstallerInterface
{
return $this->container->get(Installer::class);
}
public function getJsPaths(): array
{
$demiJsPaths = $this->container->getParameter('elements_demi.bundle_config')['jsPaths'];
return array_merge(parent::getJsPaths(), $demiJsPaths);
}
public function getCssPaths(): array
{
$demiCssPaths = $this->container->getParameter('elements_demi.bundle_config')['cssPaths'];
return array_merge(parent::getCssPaths(), $demiCssPaths);
}
public function boot(): void
{
parent::boot();
Init::cliInit();
\Elements\Demi\Deskline\Init::init();
}
protected function getComposerPackageName(): string
{
return 'elements/demi-bundle';
}
}