<?php
namespace Elements\Bundle\AlpsteinBundle;
use Elements\Bundle\AlpsteinBundle\Tools\Installer;
use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
class ElementsAlpsteinBundle extends AbstractPimcoreBundle
{
public function getJsPaths()
{
return [
'/bundles/elementsalpstein/static/js/pimcore/startup.js',
];
}
public function getInstaller()
{
return $this->container->get(Installer::class);
}
public function getVersion()
{
$version = '1.0';
if (class_exists('\\Composer\\InstalledVersions')) {
$version = \Composer\InstalledVersions::getVersion('elements/alpstein-bundle');
} else {
$version = \PackageVersions\Versions::getVersion('elements/alpstein-bundle');
}
return $version;
}
}