From 64b64c20e1bab3722d13e9c5e36e1129aa4ad390 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 1 Aug 2023 01:28:31 +0200 Subject: [PATCH] Add static function getVersion returning bundle version --- RapsysPackBundle.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/RapsysPackBundle.php b/RapsysPackBundle.php index 7be0f82..e773042 100644 --- a/RapsysPackBundle.php +++ b/RapsysPackBundle.php @@ -46,4 +46,14 @@ class RapsysPackBundle extends Bundle { //Return underscored lowercase bundle alias return Container::underscore(substr(static::class, $npos, $bpos)); } + + /** + * Return bundle version + * + * @return string The bundle version + */ + public static function getVersion(): string { + //Return version + return '0.2.5'; + } } -- 2.41.1