<?php
namespace Elements\Bundle\GoogleCseBundle;
use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
use Elements\Bundle\GoogleCseBundle\Tools\Installer;
class ElementsGoogleCseBundle extends AbstractPimcoreBundle
{
public function getVersion()
{
$version = '1.0';
if (class_exists('\\Composer\\InstalledVersions')) {
$version = \Composer\InstalledVersions::getVersion('elements/google-cse-bundle');
} else {
$version = \PackageVersions\Versions::getVersion('elements/google-cse-bundle');
}
return $version;
}
public function getDescription()
{
return 'Basic Google Cse integration as well as matching to routes and trying to include route specific templates';
}
public function getInstaller()
{
return $this->container->get(Installer::class);
}
}