1: <?php
2:
3: namespace PHPFastCGI\FastCGIDaemon;
4:
5: use Symfony\Component\Console\Application;
6: use Symfony\Component\Console\Command\Command;
7:
8: /**
9: * Objects that implement the ApplicationFactoryInterface can be used to create
10: * Symfony console commands and applications.
11: */
12: interface ApplicationFactoryInterface
13: {
14: /**
15: * Create a Symfony console application
16: *
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
20: *
21: * @return Application The Symfony console application
22: */
23: public function createApplication($kernel, $commandName = null, $commandDescription = null);
24:
25: /**
26: * Create a Symfony console command
27: *
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
31: *
32: * @return Command The Symfony console command
33: */
34: public function createCommand($kernel, $commandName = null, $commandDescription = null);
35: }
36: