author | ymh <ymh.work@gmail.com> |
Fri, 15 Jan 2016 15:35:00 +0100 | |
changeset 28 | b0b56e0f8c7f |
permissions | -rw-r--r-- |
28 | 1 |
<?php |
2 |
namespace CorpusParole\Providers; |
|
3 |
||
4 |
use CorpusParole\Services\Version; |
|
5 |
use Illuminate\Support\ServiceProvider; |
|
6 |
||
7 |
/** |
|
8 |
* guzzle Service Provider, inspired by https://github.com/urakozz/laravel-guzzle |
|
9 |
*/ |
|
10 |
class VersionServiceProvider extends ServiceProvider |
|
11 |
{ |
|
12 |
/** |
|
13 |
* Register the version provider |
|
14 |
* |
|
15 |
* @return Version |
|
16 |
*/ |
|
17 |
public function register() |
|
18 |
{ |
|
19 |
$this->app->singleton('version', function($app) |
|
20 |
{ |
|
21 |
return new Version(); |
|
22 |
}); |
|
23 |
} |
|
24 |
} |