<?php
namespace Elements\Bundle\DatatransPaymentBundle;
use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
class ElementsDatatransPaymentBundle extends AbstractPimcoreBundle {
use PackageVersionTrait {
getVersion as protected packageVersion;
}
protected function getComposerPackageName() : string {
return 'elements/datatrans-payment-bundle';
}
/**
* @inheritDoc
*/
public function getVersion() {
try {
// will throw up if not installed (only required if bundle is not used via composer)
return $this->packageVersion();
} catch( \Exception $ignored) {
return '';
}
}
/**
* @inheritDoc
*/
public function getNiceName() {
return 'Elements Datatans Payment Bundle';
}
/**
* @inheritDoc
*/
public function getDescription() {
return 'Integrates Datatrans into ECommerceFramework';
}
}