]> Raphaël G. Git Repositories - packbundle/commitdiff
Add static function getVersion returning bundle version
authorRaphaël Gertz <git@rapsys.eu>
Mon, 31 Jul 2023 23:28:31 +0000 (01:28 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 31 Jul 2023 23:28:31 +0000 (01:28 +0200)
RapsysPackBundle.php

index 7be0f82532302482da3b20eaa9be7525b1ee81bd..e773042c3abad4dc9e235d0cc02fa17485cc938f 100644 (file)
@@ -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';
+       }
 }