<?php
namespace Elements\Bundle\ErrorPageBundle;
use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
use Elements\Bundle\ErrorPageBundle\Tools\Installer;
class ElementsErrorPageBundle extends AbstractPimcoreBundle {
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/error-page-bundle');
} else {
$version = \PackageVersions\Versions::getVersion('elements/error-page-bundle');
}
return $version;
}
}