Test2ServiceProvider.php 508 Bytes
Newer Older
Ali Kazemi's avatar
init  
Ali Kazemi committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php


namespace Spg\Test2;
use Illuminate\Support\ServiceProvider;
use Spg\Test2\Console\Test2Command;

class Test2ServiceProvider extends ServiceProvider
{
    public function boot()
    {
        if ($this->app->runningInConsole()) {
            $this->commands([
                Test2Command::class
            ]);
        }
    }

    public function register()
    {
        parent::register();

        $this->commands([
            Test2Command::class
        ]);
    }
}