vendor/elements/universal-license-bundle/src/ElementsUniversalLicenseBundle.php line 12

Open in your IDE?
  1. <?php
  2. namespace Elements\Bundle\UniversalLicenseBundle;
  3. use PackageVersions\Versions;
  4. use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
  5. use Pimcore\Extension\Bundle\PimcoreBundleInterface;
  6. use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
  7. use Pimcore\Logger;
  8. class ElementsUniversalLicenseBundle extends AbstractPimcoreBundle implements PimcoreBundleInterface
  9. {
  10.     use PackageVersionTrait;
  11.     protected $isBooted;
  12.     const PLUGIN_NAME "UniversalLicenseBundle";
  13.     /**
  14.      * @return array
  15.     public function getCssPaths()
  16.     {
  17.         return [
  18.             '/bundles/elementsuniversallicensebundle/css/icons.css',
  19.             '/bundles/elementsuniversallicensebundle/css/style.css',
  20.         ];
  21.     }*/
  22.     /**
  23.      * @return array
  24.      */
  25.     public function getJsPaths()
  26.     {
  27.         return [
  28.             '/bundles/elementsuniversallicense/js/startup.js',
  29.         ];
  30.     }
  31.     /**
  32.      * {@inheritdoc}
  33.      */
  34.     public function getInstaller()
  35.     {
  36.         return $this->container->get(Installer::class);
  37.     }
  38.     // getVersion() will use this name to read the version from
  39.     // PackageVersions and return a normalized value
  40.     protected function getComposerPackageName(): string
  41.     {
  42.         return 'elements/universal-license-bundle';
  43.     }
  44.     public function getVersion()
  45.     {
  46.         return Versions::getVersion($this->getComposerPackageName());
  47.     }
  48.     public function getDescription()
  49.     {
  50.         return 'Provides classes and tools to defines licenses on Documents, Assets and Objects.';
  51.     }
  52. }