@@ -55,8 +55,10 @@ abstract class BaseCommand extends Command
5555 /**
5656 * Main Command method, calls the fire command on it's child commands.
5757 *
58- * @param InputInterface $input Application provided input handler.
58+ * @param InputInterface $input Application provided input handler.
5959 * @param OutputInterface $output Application provided output handler.
60+ *
61+ * @return int|null|void
6062 */
6163 protected function execute (InputInterface $ input , OutputInterface $ output )
6264 {
@@ -71,7 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7173 $ this ->manager = new Manager ();
7274
7375 // Call the child command fire() method.
74- $ this ->fire ();
76+ return $ this ->fire ($ input );
7577 }
7678
7779 /**
@@ -93,15 +95,19 @@ protected function configure()
9395
9496 /**
9597 * Abstract fire method to be implemented on child commands.
98+ *
99+ * @param InputInterface $input
100+ *
101+ * @return
96102 */
97- abstract protected function fire ();
103+ abstract protected function fire (InputInterface $ input );
98104
99105 /**
100106 * Abstracts the question process into a single method.
101107 * Some options are defined by convention, like formatting.
102- *
103- * @param string $question The question being asked.
104- * @param null $default Default value in case the user does not provide an answer.
108+ *
109+ * @param string $question The question being asked.
110+ * @param null $default Default value in case the user does not provide an answer.
105111 *
106112 * @return string The user input or the default value.
107113 */
@@ -116,10 +122,10 @@ protected function ask($question, $default = null)
116122
117123 /**
118124 * Asks a Confirmation (Yes/No) Question.
119- *
125+ *
120126 * Inputs like Y, Yes will make this method return true.
121127 * Any other input will return false.
122- *
128+ *
123129 * @param string $question The question to be confirmed.
124130 *
125131 * @return bool Confirmed or Not.
@@ -149,7 +155,7 @@ protected function format($text, $type = 'info')
149155 /**
150156 * Write a string into the console output.
151157 *
152- * @param string $text The string to be displayed.
158+ * @param string $text The string to be displayed.
153159 * @param string $format The coloring format.
154160 */
155161 protected function writeln ($ text , $ format = 'info ' )
@@ -160,7 +166,7 @@ protected function writeln($text, $format = 'info')
160166
161167 /**
162168 * Write a not formatted string into the console output.
163- *
169+ *
164170 * @param string $text The string to be displayed.
165171 */
166172 protected function writelnPlain ($ text )
0 commit comments