diff options
author | msquare <msquare@notrademark.de> | 2019-07-21 13:38:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-21 13:38:05 +0200 |
commit | 1e16f4c47ec15ffea41e1fa612d205b8db2a16d1 (patch) | |
tree | 0d436535bd7094a201e52036acd406f00bfc620f /src/Helpers/VersionServiceProvider.php | |
parent | 3d8476efd3709806d254b1c41e26e906080e0b39 (diff) | |
parent | 4582f808f05205e7a32ecd6ae42dee00295872f1 (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.php | 15 |
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')); + } +} |