Projeto

Geral

Perfil

Revisão ab2f5151 app/Console/Commands/Teste.php

Ver diferenças:

app/Console/Commands/Teste.php
2 2

  
3 3
namespace App\Console\Commands;
4 4

  
5
use App\Commons\Ldap;
6 5
use Illuminate\Console\Command;
7
use Illuminate\Support\Facades\DB;
8
use LdapRecord\Connection;
9
use Storage;
6
use Illuminate\Support\Facades\Storage;
7
use Illuminate\Support\Facades\File;
10 8

  
11 9
class Teste extends Command
12 10
{
......
15 13
     *
16 14
     * @var string
17 15
     */
16
    //protected $signature = 'teste:comando {--o1|opt1=} {--o2|opt2=}';
18 17
    protected $signature = 'teste:comando';
19 18

  
20 19
    /**
......
41 40
     */
42 41
    public function handle()
43 42
    {
44
        $ldap = new Ldap();
43
        // $opt1 = $this->option('opt1') ?? null;
44
        // $opt2 = $this->option('opt2') ?? null;
45 45

  
46
        //print_r( $ldap->getUidNumber("alexandrecorreia") );
47

  
48
        //print_r( $ldap->getUid("500074") );
49

  
50
        print_r( $ldap->getUsersOu("celepar") );
46
        // if( !is_null($opt1) )
47
        //     print_r( 'opt1 : ' . $opt1 . PHP_EOL);
51 48

  
49
        // if( !is_null($opt2) )
50
        //     print_r( 'opt2 : ' . $opt2 . PHP_EOL );
52 51
    }
52

  
53 53
}
54 54

  

Exportar para Unified diff