diff --git a/src/Xliff2Bundle/Xliff2Bundle.php b/src/Xliff2Bundle/Xliff2Bundle.php index 15d4fbd..82ffc3b 100644 --- a/src/Xliff2Bundle/Xliff2Bundle.php +++ b/src/Xliff2Bundle/Xliff2Bundle.php @@ -13,14 +13,20 @@ use Xliff2Bundle\DependencyInjection\Compiler\Xliff20CompilerPass; use Pimcore\Extension\Bundle\AbstractPimcoreBundle; use Pimcore\Extension\Bundle\PimcoreBundleInterface; +use Pimcore\Extension\Bundle\Traits\PackageVersionTrait; use Symfony\Component\DependencyInjection\ContainerBuilder; -/** - * Class AmazonMarketplaceBundle - * @package AmazonMarketplaceBundle - */ class Xliff2Bundle extends AbstractPimcoreBundle implements PimcoreBundleInterface { + use PackageVersionTrait; + + const PACKAGE_NAME = 'asioso/pimcore-xliff2_0-module'; + + protected function getComposerPackageName() + { + return self::PACKAGE_NAME; + } + public function build(ContainerBuilder $container) { parent::build($container); @@ -32,24 +38,8 @@ public function getNiceName() return 'Asioso - Xliff 2.0 Bundle'; } - /** - * Bundle description as shown in extension manager - * - * @return string - */ - public function getDescription() - { - return ""; - } - - public function getVersion() - { - return 'v1.0'; - } - public static function getSolutionVersion() { - return "v1.0"; + return $this->getVersion(); } - }