InstallMpesaPackage::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.8333
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace konectdigital\Mpesa\Console;
4
5
use Illuminate\Console\Command;
6
7
class InstallMpesaPackage extends Command
8
{
9
    protected $signature = 'mpesa:install';
10
11
    protected $description = 'Install Mpesa Package';
12
13
    public function handle()
14
    {
15
        $this->info('Installing MpesaPackage...');
16
17
        $this->info('Publishing configuration...');
18
19
        $this->call('vendor:publish', [
20
            '--provider' => "Konectdigital\Mpesa\MpesaServiceProvider",
21
            '--tag' => 'config',
22
        ]);
23
24
        $this->info('Installed Mpesa');
25
    }
26
}
27