SocialiteServiceProvider::provides()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1.037

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 2
cts 3
cp 0.6667
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 1.037
1
<?php namespace Arcanedev\Socialite;
2
3
use Arcanedev\Support\PackageServiceProvider as ServiceProvider;
4
5
/**
6
 * Class     SocialiteServiceProvider
7
 *
8
 * @package  Arcanedev\Socialite
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class SocialiteServiceProvider extends ServiceProvider
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Properties
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Package name.
19
     *
20
     * @var string
21
     */
22
    protected $package = 'socialite';
23
24
    /* ------------------------------------------------------------------------------------------------
25
     |  Getters & Setters
26
     | ------------------------------------------------------------------------------------------------
27
     */
28
    /**
29
     * Get the base path of the package.
30
     *
31
     * @return string
32
     */
33
    public function getBasePath()
34
    {
35
        return dirname(__DIR__);
36
    }
37
38
    /* ------------------------------------------------------------------------------------------------
39
     |  Main Functions
40
     | ------------------------------------------------------------------------------------------------
41
     */
42
    /**
43
     * Register the service provider.
44
     */
45
    public function register()
46
    {
47
        $this->singleton(Contracts\Factory::class, SocialiteManager::class);
48
    }
49
50
    /**
51
     * Get the services provided by the provider.
52
     *
53
     * @return array
54 54
     */
55
    public function provides()
56 54
    {
57 54
        return [
58
            Contracts\Factory::class,
59
        ];
60
    }
61
}
62