Skip to content

Commit 8327fab

Browse files
author
Andrew Carter
committed
Addedoptional command name and description parameters to ApplicationFactoryInterface
1 parent e303fc0 commit 8327fab

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/ApplicationFactoryInterface.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,22 @@ interface ApplicationFactoryInterface
1414
/**
1515
* Create a Symfony console application
1616
*
17-
* @param KernelInterface|callable $kernel The daemon's kernel
17+
* @param KernelInterface|callable $kernel The kernel to use
18+
* @param string $commandName The name of the daemon run command
19+
* @param string $commandDescription The description of the daemon run command
1820
*
1921
* @return Application The Symfony console application
2022
*/
21-
public function createApplication($kernel);
23+
public function createApplication($kernel, $commandName = null, $commandDescription = null);
2224

2325
/**
2426
* Create a Symfony console command
2527
*
26-
* @param KernelInterface|callable $kernel The daemon's kernel
28+
* @param KernelInterface|callable $kernel The kernel to use
29+
* @param string $commandName The name of the daemon run command
30+
* @param string $commandDescription The description of the daemon run command
2731
*
2832
* @return Command The Symfony console command
2933
*/
30-
public function createCommand($kernel);
34+
public function createCommand($kernel, $commandName = null, $commandDescription = null);
3135
}

0 commit comments

Comments
 (0)