Completed
Push — master ( 23ac12...d30385 )
by Stanislav
07:39
created

RobotsManagerServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 30
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A provides() 0 4 1
A register() 0 5 1
1
<?php
2
namespace DJStarCOM\RobotsManager;
3
4
use Illuminate\Support\ServiceProvider;
5
6
/**
7
 * Class RobotsManagerServiceProvider
8
 *
9
 * @package DJStarCOM\RobotsManager
10
 */
11
class RobotsManagerServiceProvider extends ServiceProvider
12
{
13
    /**
14
     * Indicates if loading of the provider is deferred.
15
     *
16
     * @var bool
17
     */
18
    protected $defer = false;
19
20
    /**
21
     * Get the services provided for deferred loading.
22
     *
23
     * @return array
24
     */
25
    public function provides(): array
26
    {
27
        return [RobotsManager::class];
28
    }
29
30
    /**
31
     * Register the service provider.
32
     *
33
     * @return void
34
     */
35
    public function register()
36
    {
37
        // Register Manager class singleton with the app container
38
        $this->app->singleton(RobotsManager::class);
39
    }
40
}
41