1 | <?php |
||
21 | class ConsoleCommandsPass implements CompilerPassInterface { |
||
22 | /** |
||
23 | * Console command class. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | const CONSOLE_COMMAND = 'Symfony\\Component\\Console\\Command\\Command'; |
||
28 | |||
29 | /** |
||
30 | * Method to call on console application to add commands. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | const ADD_METHOD = 'add'; |
||
35 | |||
36 | /** |
||
37 | * Console application ID. |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $appId; |
||
42 | |||
43 | /** |
||
44 | * Tag name. |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | protected $tagName; |
||
49 | |||
50 | /** |
||
51 | * Initialiser. |
||
52 | * |
||
53 | * @param string|null $tagName |
||
54 | * @param string|null $appId |
||
55 | */ |
||
56 | public function __construct($tagName=null, $appId=null) { |
||
60 | |||
61 | /** |
||
62 | * @inheritdoc CompilerPassInterface |
||
63 | */ |
||
64 | public function process(ContainerBuilder $container) { |
||
89 | } |
||
90 |