@@ 70-88 (lines=19) @@ | ||
67 | /** |
|
68 | * {@inheritdoc} |
|
69 | */ |
|
70 | protected function interact(InputInterface $input, OutputInterface $output) |
|
71 | { |
|
72 | if (Kernel::VERSION_ID >= 40000) { |
|
73 | return; |
|
74 | } |
|
75 | ||
76 | $questionHelper = $this->getQuestionHelper(); |
|
77 | $questionHelper->writeSection($output, 'Welcome to the Kunstmaan default site generator'); |
|
78 | ||
79 | $inputAssistant = GeneratorUtils::getInputAssistant($input, $output, $questionHelper, $this->getApplication()->getKernel(), $this->getContainer()); |
|
80 | ||
81 | $inputAssistant->askForNamespace(array( |
|
82 | '', |
|
83 | 'This command helps you to generate tests to test the admin of the default site setup.', |
|
84 | 'You must specify the namespace of the bundle where you want to generate the tests.', |
|
85 | 'Use <comment>/</comment> instead of <comment>\\ </comment>for the namespace delimiter to avoid any problem.', |
|
86 | '', |
|
87 | )); |
|
88 | } |
|
89 | ||
90 | protected function createGenerator() |
|
91 | { |
@@ 96-118 (lines=23) @@ | ||
93 | $output->writeln(''); |
|
94 | } |
|
95 | ||
96 | protected function interact(InputInterface $input, OutputInterface $output) |
|
97 | { |
|
98 | $questionHelper = $this->getQuestionHelper(); |
|
99 | $questionHelper->writeSection($output, 'Welcome to the SearchPage generator'); |
|
100 | ||
101 | $inputAssistant = GeneratorUtils::getInputAssistant($input, $output, $questionHelper, $this->getApplication()->getKernel(), $this->getContainer()); |
|
102 | ||
103 | if (Kernel::VERSION_ID >= 40000) { |
|
104 | $inputAssistant->askForPrefix(); |
|
105 | ||
106 | return; |
|
107 | } |
|
108 | ||
109 | $inputAssistant->askForNamespace(array( |
|
110 | '', |
|
111 | 'This command helps you to generate a SearchPage.', |
|
112 | 'You must specify the namespace of the bundle where you want to generate the SearchPage in.', |
|
113 | 'Use <comment>/</comment> instead of <comment>\\ </comment>for the namespace delimiter to avoid any problem.', |
|
114 | '', |
|
115 | )); |
|
116 | ||
117 | $inputAssistant->askForPrefix(); |
|
118 | } |
|
119 | ||
120 | protected function createGenerator() |
|
121 | { |