From 029f864225519c5028f2b888051cfd22578e2748 Mon Sep 17 00:00:00 2001 From: Vladimir Malik Date: Tue, 26 Nov 2019 23:47:42 +0300 Subject: [PATCH] Added PackageVersionTrait for get veersion based on Composer info. Fixed minimal version in readme.md. --- readme.md | 2 +- .../DivanteClassificationTreeBundle.php | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 0a23749..cd349eb 100644 --- a/readme.md +++ b/readme.md @@ -22,7 +22,7 @@ Classification Tree lets you add new custom view with classification tree. - [About Authors](#about-authors) ## Compatibility -This module is compatible with Pimcore 5.3.0 and higher. +This module is compatible with Pimcore 5.5.0 and higher. ## Installing/Getting started diff --git a/src/ClassificationTreeBundle/DivanteClassificationTreeBundle.php b/src/ClassificationTreeBundle/DivanteClassificationTreeBundle.php index b1bcf20..bda3d6e 100644 --- a/src/ClassificationTreeBundle/DivanteClassificationTreeBundle.php +++ b/src/ClassificationTreeBundle/DivanteClassificationTreeBundle.php @@ -6,8 +6,8 @@ */ namespace Divante\ClassificationTreeBundle; -use Divante\ClassificationTreeBundle\Migrations\Installer; use Pimcore\Extension\Bundle\AbstractPimcoreBundle; +use Pimcore\Extension\Bundle\Traits\PackageVersionTrait; /** * Class DivanteClassificationTreeBundle @@ -15,6 +15,16 @@ */ class DivanteClassificationTreeBundle extends AbstractPimcoreBundle { + use PackageVersionTrait; + + /** + * {@inheritdoc} + */ + protected function getComposerPackageName() + { + return 'divante-ltd/pimcore-classification-tree'; + } + /** * @return array */