File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 21
21
22
22
class CleanCommand extends Command
23
23
{
24
+ protected static $ defaultName = 'fos:oauth-server:clean ' ;
25
+
24
26
private $ accessTokenManager ;
25
27
private $ refreshTokenManager ;
26
28
private $ authCodeManager ;
27
29
28
30
public function __construct (
29
31
TokenManagerInterface $ accessTokenManager ,
30
32
TokenManagerInterface $ refreshTokenManager ,
31
- AuthCodeManagerInterface $ authCodeManager)
32
- {
33
+ AuthCodeManagerInterface $ authCodeManager
34
+ ) {
33
35
parent ::__construct ();
34
36
35
37
$ this ->accessTokenManager = $ accessTokenManager ;
@@ -45,7 +47,6 @@ protected function configure()
45
47
parent ::configure ();
46
48
47
49
$ this
48
- ->setName ('fos:oauth-server:clean ' )
49
50
->setDescription ('Clean expired tokens ' )
50
51
->setHelp (<<<EOT
51
52
The <info>%command.name%</info> command will remove expired OAuth2 tokens.
Original file line number Diff line number Diff line change 22
22
23
23
class CreateClientCommand extends Command
24
24
{
25
+ protected static $ defaultName = 'fos:oauth-server:create-client ' ;
26
+
25
27
private $ clientManager ;
26
28
27
29
public function __construct (ClientManagerInterface $ clientManager )
@@ -39,7 +41,6 @@ protected function configure()
39
41
parent ::configure ();
40
42
41
43
$ this
42
- ->setName ('fos:oauth-server:create-client ' )
43
44
->setDescription ('Creates a new client ' )
44
45
->addOption (
45
46
'redirect-uri ' ,
You can’t perform that action at this time.
0 commit comments