ServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 3 1
A boot() 0 6 1
1
<?php
2
3
namespace Locale;
4
5
use Illuminate\Support\ServiceProvider as Provider;
6
7
/**
8
 * Class ServiceProvider
9
 *
10
 * @since 1.0.0
11
 * @package Locale
12
 */
13
class ServiceProvider extends Provider
14
{
15
    /**
16
     * @since 1.0.0
17
     */
18
    public function boot()
19
    {
20
        // Publish a config file
21
        $this->publishes([
22
            __DIR__ . '/../config/locale.php' => config_path('locale.php'),
23
        ], 'config');
24
    }
25
26
    /**
27
     * @since 1.0.0
28
     */
29
    public function register()
30
    {
31
        $this->mergeConfigFrom(__DIR__ . '/../config/locale.php', 'locale');
32
    }
33
}
34