summaryrefslogtreecommitdiff
path: root/src/Helpers/VersionServiceProvider.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2019-07-21 13:38:05 +0200
committerGitHub <noreply@github.com>2019-07-21 13:38:05 +0200
commit1e16f4c47ec15ffea41e1fa612d205b8db2a16d1 (patch)
tree0d436535bd7094a201e52036acd406f00bfc620f /src/Helpers/VersionServiceProvider.php
parent3d8476efd3709806d254b1c41e26e906080e0b39 (diff)
parent4582f808f05205e7a32ecd6ae42dee00295872f1 (diff)
Merge pull request #624 from MyIgel/version
Added version to credits and metrics page
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'));
+ }
+}