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

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