summaryrefslogtreecommitdiff
path: root/src/Helpers/VersionServiceProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Helpers/VersionServiceProvider.php')
-rw-r--r--src/Helpers/VersionServiceProvider.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Helpers/VersionServiceProvider.php b/src/Helpers/VersionServiceProvider.php
new file mode 100644
index 00000000..41e10158
--- /dev/null
+++ b/src/Helpers/VersionServiceProvider.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace Engelsystem\Helpers;
+
+use Engelsystem\Container\ServiceProvider;
+
+class VersionServiceProvider extends ServiceProvider
+{
+ public function register()
+ {
+ $this->app->when(Version::class)
+ ->needs('$storage')
+ ->give($this->app->get('path.storage.app'));
+ }
+}