Projeto

Geral

Perfil

Estatísticas
| Branch: | Revisão:

expressolivretools / app / Console / Commands / Teste.php @ master

Histórico | Ver | Anotar | Baixar (1,06 KB)

1 68c328a2 Alexandre Correia
<?php
2
3
namespace App\Console\Commands;
4
5
use Illuminate\Console\Command;
6 ab2f5151 Alexandre Correia
use Illuminate\Support\Facades\Storage;
7
use Illuminate\Support\Facades\File;
8 68c328a2 Alexandre Correia
9
class Teste extends Command
10
{
11
    /**
12
     * The name and signature of the console command.
13
     *
14
     * @var string
15
     */
16 ab2f5151 Alexandre Correia
    //protected $signature = 'teste:comando {--o1|opt1=} {--o2|opt2=}';
17 68c328a2 Alexandre Correia
    protected $signature = 'teste:comando';
18
19
    /**
20
     * The console command description.
21
     *
22
     * @var string
23
     */
24
    protected $description = 'Comando teste';
25
26
    /**
27
     * Create a new command instance.
28
     *
29
     * @return void
30
     */
31
    public function __construct()
32
    {
33
        parent::__construct();
34
    }
35
36
    /**
37
     * Execute the console command.
38
     *
39
     * @return mixed
40
     */
41
    public function handle()
42
    {
43 ab2f5151 Alexandre Correia
        // $opt1 = $this->option('opt1') ?? null;
44
        // $opt2 = $this->option('opt2') ?? null;
45 68c328a2 Alexandre Correia
46 ab2f5151 Alexandre Correia
        // if( !is_null($opt1) )
47
        //     print_r( 'opt1 : ' . $opt1 . PHP_EOL);
48 68c328a2 Alexandre Correia
49 ab2f5151 Alexandre Correia
        // if( !is_null($opt2) )
50
        //     print_r( 'opt2 : ' . $opt2 . PHP_EOL );
51 68c328a2 Alexandre Correia
    }
52 ab2f5151 Alexandre Correia
53 68c328a2 Alexandre Correia
}