File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Filter options
src/Symfony/Component/Console/Command Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Original file line number Diff line number Diff line change @@ -213,16 +213,6 @@ protected function initialize(InputInterface $input, OutputInterface $output)
213
213
*/
214
214
public function run (InputInterface $ input , OutputInterface $ output )
215
215
{
216
- if (null !== $ this ->processTitle ) {
217
- if (function_exists ('cli_set_process_title ' )) {
218
- cli_set_process_title ($ this ->processTitle );
219
- } elseif (function_exists ('setproctitle ' )) {
220
- setproctitle ($ this ->processTitle );
221
- } elseif (OutputInterface::VERBOSITY_VERY_VERBOSE === $ output ->getVerbosity ()) {
222
- $ output ->writeln ('<comment>Install the proctitle PECL to be able to change the process title.</comment> ' );
223
- }
224
- }
225
-
226
216
// force the creation of the synopsis before the merge with the app definition
227
217
$ this ->getSynopsis ();
228
218
@@ -240,6 +230,16 @@ public function run(InputInterface $input, OutputInterface $output)
240
230
241
231
$ this ->initialize ($ input , $ output );
242
232
233
+ if (null !== $ this ->processTitle ) {
234
+ if (function_exists ('cli_set_process_title ' )) {
235
+ cli_set_process_title ($ this ->processTitle );
236
+ } elseif (function_exists ('setproctitle ' )) {
237
+ setproctitle ($ this ->processTitle );
238
+ } elseif (OutputInterface::VERBOSITY_VERY_VERBOSE === $ output ->getVerbosity ()) {
239
+ $ output ->writeln ('<comment>Install the proctitle PECL to be able to change the process title.</comment> ' );
240
+ }
241
+ }
242
+
243
243
if ($ input ->isInteractive ()) {
244
244
$ this ->interact ($ input , $ output );
245
245
}
You can’t perform that action at this time.
0 commit comments