Completed
Push — master ( 45872a...8a4f05 )
by Rudy
02:45
created

SocialMapFavoritesServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 41
ccs 0
cts 18
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 4 1
A loadupCommands() 0 14 1
A register() 0 4 1
1
<?php
2
namespace CTL\SocialMapFavorites;
3
4
use Illuminate\Support\ServiceProvider;
5
6
class SocialMapFavoritesServiceProvider extends ServiceProvider {
7
8
  /**
9
   * Bootstrap any application services.
10
   *
11
   * @return void
12
   */
13
  public function boot()
14
  {
15
      $this->loadupCommands();
16
  }
17
18
  /**
19
   * Setting up Favorite Command Handlers && ActionableTrait
20
   */
21
  protected function loadupCommands(){
22
    $this->publishes([
23
        __DIR__.'/Commands/FavAUserCommand' => base_path('app/Commands'),
24
    ]);
25
26
    $this->publishes([
27
        __DIR__.'/Commands/unFavAUserCommand' => base_path('app/Commands'),
28
    ]);
29
30
    $this->publishes([
31
        __DIR__.'/Core/Users/' => base_path('Core/Users/'),
32
    ]);
33
34
  }
35
36
  /**
37
   * Register any application services.
38
   *
39
   */
40
  public function register()
41
  {
42
    //
43
  }
44
45
46
}
47