<?php
namespace Elements\Bundle\UniversalLicenseBundle;
use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
use Pimcore\Extension\Bundle\PimcoreBundleInterface;
use Pimcore\Logger;
class ElementsUniversalLicenseBundle extends AbstractPimcoreBundle implements PimcoreBundleInterface
{
protected $isBooted;
const PLUGIN_NAME = "UniversalLicenseBundle";
/**
* @return array
public function getCssPaths()
{
return [
'/bundles/elementsuniversallicensebundle/css/icons.css',
'/bundles/elementsuniversallicensebundle/css/style.css',
];
}*/
/**
* @return array
*/
public function getJsPaths()
{
return [
'/bundles/elementsuniversallicense/js/startup.js',
];
}
/**
* {@inheritdoc}
*/
public function getInstaller()
{
return $this->container->get(Installer::class);
}
// getVersion() will use this name to read the version from
// PackageVersions and return a normalized value
protected function getComposerPackageName(): string
{
return 'elements/universal-license-bundle';
}
public function getVersion()
{
$version = '1.0';
if (class_exists('\\Composer\\InstalledVersions')) {
$version = \Composer\InstalledVersions::getVersion('elements/universal-license-bundle');
} else {
$version = \PackageVersions\Versions::getVersion('elements/universal-license-bundle');
}
return $version;
}
public function getDescription()
{
return 'Provides classes and tools to defines licenses on Documents, Assets and Objects.';
}
}