Completed
Push — master ( 486598...7261f1 )
by Ryan
12:27
created

Kernel::commands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php namespace Anomaly\Streams\Platform\Console;
2
3
use Illuminate\Contracts\Events\Dispatcher;
4
5
/**
6
 * Class Kernel
7
 *
8
 * @link   http://pyrocms.com/
9
 * @author PyroCMS, Inc. <[email protected]>
10
 * @author Ryan Thompson <[email protected]>
11
 */
12
class Kernel extends \Illuminate\Foundation\Console\Kernel
13
{
14
15
    /**
16
     * Get the Artisan application instance.
17
     *
18
     * @return \Illuminate\Console\Application
19
     */
20
    protected function getArtisan()
21
    {
22
        if (is_null($this->artisan)) {
23
            return $this->artisan = (new Application($this->app, $this->events, $this->app->version()))
24
                ->resolveCommands($this->commands);
25
        }
26
27
        return $this->artisan;
28
    }
29
30
    /**
31
     * Include base commands.
32
     */
33
    protected function commands()
34
    {
35
        require base_path('routes/console.php');
36
    }
37
}
38