Completed
Push — master ( 692071...1e7a7e )
by Mahmoud
02:16
created

ConsoleServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A boot() 0 7 2
1
<?php
2
3
namespace App\Port\Console\Providers;
4
5
use App\Port\Provider\Abstracts\ServiceProviderAbstract;
6
use App\Port\Provider\Traits\PortServiceProviderTrait;
7
8
/**
9
 * Class ConsoleServiceProvider.
10
 *
11
 * @author  Mahmoud Zalt <[email protected]>
12
 */
13
class ConsoleServiceProvider extends ServiceProviderAbstract
14
{
15
16
    use PortServiceProviderTrait;
17
18
    /**
19
     * Auto-loading Container Console Commands
20
     */
21
    public function boot()
22
    {
23
        // TODO: this function needs to be moved somewhere after refactoring the port layer
24
        if ($this->app->runningInConsole()) {
25
            $this->commands($this->getAllContainersConsoleCommandsForAutoLoading());
26
        }
27
    }
28
29
}
30