Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 11 additions & 21 deletions src/Xliff2Bundle/Xliff2Bundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
}

}