Skip to content

Commit

Permalink
Added PackageVersionTrait for getting Bundle version (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmalyk authored Jul 19, 2021
1 parent 3cb8938 commit bceedff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/PimcoreDataImporterBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,22 @@
use Pimcore\Bundle\DataImporterBundle\DependencyInjection\CompilerPass\MappingConfigurationFactoryPass;
use Pimcore\Bundle\DataImporterBundle\DependencyInjection\CompilerPass\ResolverConfigurationFactoryPass;
use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
use Pimcore\Extension\Bundle\Traits\PackageVersionTrait;
use Pimcore\HttpKernel\Bundle\DependentBundleInterface;
use Pimcore\HttpKernel\BundleCollection\BundleCollection;
use Symfony\Component\DependencyInjection\ContainerBuilder;

class PimcoreDataImporterBundle extends AbstractPimcoreBundle implements DependentBundleInterface
{
use PackageVersionTrait;

const LOGGER_COMPONENT_PREFIX = 'DATA-IMPORTER ';

protected function getComposerPackageName(): string
{
return 'pimcore/data-importer';
}

public function getCssPaths()
{
return [
Expand Down

0 comments on commit bceedff

Please sign in to comment.