Skip to content

Commit 28c5a7a

Browse files
authored
Merge pull request #690 from DirectoryTree/bug-689
Add $description to ldap:browse command
2 parents 15f56e0 + a2f20dc commit 28c5a7a

File tree

4 files changed

+25
-18
lines changed

4 files changed

+25
-18
lines changed

src/Commands/BrowseLdapServer.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ class BrowseLdapServer extends Command
2929
*/
3030
protected $signature = 'ldap:browse {connection=default : The LDAP connection to browse.}';
3131

32+
/**
33+
* The description of the console command.
34+
*
35+
* @var string
36+
*/
37+
protected $description = 'Interactively browse your LDAP server.';
38+
3239
/**
3340
* The LDAP connections base DN (root).
3441
*/

src/Commands/MakeLdapModel.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@
88
class MakeLdapModel extends GeneratorCommand
99
{
1010
/**
11-
* The console command name.
11+
* The type of class being generated.
1212
*
1313
* @var string
1414
*/
15-
protected $name = 'ldap:make:model';
15+
protected $type = 'LDAP Model';
1616

1717
/**
18-
* The console command description.
18+
* The console command name.
1919
*
2020
* @var string
2121
*/
22-
protected $description = 'Create a new LDAP model.';
22+
protected $name = 'ldap:make:model';
2323

2424
/**
25-
* The type of class being generated.
25+
* The console command description.
2626
*
2727
* @var string
2828
*/
29-
protected $type = 'LDAP Model';
29+
protected $description = 'Create a new LDAP model.';
3030

3131
/**
3232
* {@inheritdoc}

src/Commands/MakeLdapRule.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@
88
class MakeLdapRule extends GeneratorCommand
99
{
1010
/**
11-
* The console command name.
11+
* The type of class being generated.
1212
*
1313
* @var string
1414
*/
15-
protected $name = 'ldap:make:rule';
15+
protected $type = 'LDAP Rule';
1616

1717
/**
18-
* The console command description.
18+
* The console command name.
1919
*
2020
* @var string
2121
*/
22-
protected $description = 'Create a new LDAP authentication rule.';
22+
protected $name = 'ldap:make:rule';
2323

2424
/**
25-
* The type of class being generated.
25+
* The console command description.
2626
*
2727
* @var string
2828
*/
29-
protected $type = 'LDAP Rule';
29+
protected $description = 'Create a new LDAP authentication rule.';
3030

3131
/**
3232
* {@inheritdoc}

src/Commands/MakeLdapScope.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,25 @@
88
class MakeLdapScope extends GeneratorCommand
99
{
1010
/**
11-
* The console command name.
11+
* The type of class being generated.
1212
*
1313
* @var string
1414
*/
15-
protected $name = 'ldap:make:scope';
15+
protected $type = 'LDAP Scope';
1616

1717
/**
18-
* The console command description.
18+
* The console command name.
1919
*
2020
* @var string
2121
*/
22-
protected $description = 'Create a new LDAP query scope.';
22+
protected $name = 'ldap:make:scope';
2323

2424
/**
25-
* The type of class being generated.
25+
* The console command description.
2626
*
2727
* @var string
2828
*/
29-
protected $type = 'LDAP Scope';
29+
protected $description = 'Create a new LDAP query scope.';
3030

3131
/**
3232
* {@inheritdoc}

0 commit comments

Comments
 (0)