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

ConsoleServiceProvider::boot()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 2
eloc 3
nc 2
nop 0
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