Completed
Push — develop ( 64265e...12ceca )
by Mohamed
10:07
created

AppServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 1
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the Tinyissue package.
5
 *
6
 * (c) Mohamed Alsharaf <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Tinyissue\Providers;
13
14
use Illuminate\Support\ServiceProvider;
15
use Tinyissue\Services;
16
17
/**
18
 * AppServiceProvider is the application service provider for bootstrapping and registering global services.
19
 *
20
 * @author Mohamed Alsharaf <[email protected]>
21
 */
22
class AppServiceProvider extends ServiceProvider
23
{
24
    /**
25
     * Bootstrap any application services.
26
     */
27 59
    public function boot()
28
    {
29 59
    }
30
31
    /**
32
     * Register any application services.
33
     *
34
     * This service provider is a great spot to register your various container
35
     * bindings with the application. As you can see, we are registering our
36
     * "Registrar" implementation here. You can add your own bindings too!
37
     */
38 59
    public function register()
39
    {
40 59
        $this->app->bind(
41 59
                'Illuminate\Contracts\Auth\Registrar', 'Tinyissue\Services\Registrar'
42
        );
43
44
        $this->app['artisan.tinyissue.install'] = $this->app->share(function () {
45
            return new \Tinyissue\Console\Commands\Install();
46 59
        });
47
48 59
        $this->commands('artisan.tinyissue.install');
49
50 59
        $this->app['tinyissue.settings'] = $this->app->share(function () {
51 59
            return new Services\SettingsManager();
52 59
        });
53 59
    }
54
}
55