CurrenciesServiceProvider::getBasePath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 0
cp 0
crap 2
rs 10
1
<?php namespace Arcanedev\Currencies;
2
3
use Arcanedev\Support\PackageServiceProvider;
4
5
/**
6
 * Class     CurrenciesServiceProvider
7
 *
8
 * @package  Arcanedev\Currencies
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class CurrenciesServiceProvider extends PackageServiceProvider
12
{
13
    /* ------------------------------------------------------------------------------------------------
14
     |  Properties
15
     | ------------------------------------------------------------------------------------------------
16
     */
17
    /**
18
     * Package name.
19
     *
20
     * @var string
21
     */
22
    protected $package = 'currencies';
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 612
     | ------------------------------------------------------------------------------------------------
41
     */
42 612
    /**
43
     * Register the service provider.
44
     */
45
    public function register()
46
    {
47
        $this->registerConfig();
48
49
        $this->app->register(Providers\ManagerServiceProvider::class);
50
        $this->app->register(Providers\ValidationServiceProvider::class);
51
    }
52 612
53
    /**
54 612
     * Boot the service provider.
55
     */
56 612
    public function boot()
57 612
    {
58 612
        parent::boot();
59
60
        // Publishes
61
        $this->publishConfig();
62
        $this->publishTranslations();
63 612
    }
64
}
65