Projeto

Geral

Perfil

Estatísticas
| Branch: | Revisão:

expressolivretools / app / Console / Commands / Teste.php @ 68c328a2

Histórico | Ver | Anotar | Baixar (942 Bytes)

1
<?php
2

    
3
namespace App\Console\Commands;
4

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

    
11
class Teste extends Command
12
{
13
    /**
14
     * The name and signature of the console command.
15
     *
16
     * @var string
17
     */
18
    protected $signature = 'teste:comando';
19

    
20
    /**
21
     * The console command description.
22
     *
23
     * @var string
24
     */
25
    protected $description = 'Comando teste';
26

    
27
    /**
28
     * Create a new command instance.
29
     *
30
     * @return void
31
     */
32
    public function __construct()
33
    {
34
        parent::__construct();
35
    }
36

    
37
    /**
38
     * Execute the console command.
39
     *
40
     * @return mixed
41
     */
42
    public function handle()
43
    {
44
        $ldap = new Ldap();
45

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

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

    
50
        print_r( $ldap->getUsersOu("celepar") );
51

    
52
    }
53
}
54