@@ -33,7 +33,7 @@ class Command
33
33
{
34
34
private $ application ;
35
35
private $ name ;
36
- private $ processName ;
36
+ private $ processTitle ;
37
37
private $ aliases = array ();
38
38
private $ definition ;
39
39
private $ help ;
@@ -213,11 +213,11 @@ protected function initialize(InputInterface $input, OutputInterface $output)
213
213
*/
214
214
public function run (InputInterface $ input , OutputInterface $ output )
215
215
{
216
- if (null !== $ this ->processName ) {
216
+ if (null !== $ this ->processTitle ) {
217
217
if (function_exists ('cli_set_process_title ' )) {
218
- cli_set_process_title ($ this ->processName );
218
+ cli_set_process_title ($ this ->processTitle );
219
219
} elseif (function_exists ('setproctitle ' )) {
220
- setproctitle ($ this ->processName );
220
+ setproctitle ($ this ->processTitle );
221
221
} elseif (OutputInterface::VERBOSITY_VERY_VERBOSE === $ output ->getVerbosity ()) {
222
222
$ output ->writeln ('<comment>Install the proctitle PECL to be able to change the process title.</comment> ' );
223
223
}
@@ -423,20 +423,20 @@ public function setName($name)
423
423
}
424
424
425
425
/**
426
- * Sets the process name of the command.
426
+ * Sets the process title of the command.
427
427
*
428
428
* This feature should be used only when creating a long process command,
429
429
* like a daemon.
430
430
*
431
431
* PHP 5.5+ or the proctitle PECL library is required
432
432
*
433
- * @param string $name The process name
433
+ * @param string $title The process title
434
434
*
435
435
* @return Command The current instance
436
436
*/
437
- public function setProcessName ( $ name )
437
+ public function setProcessTitle ( $ title )
438
438
{
439
- $ this ->processName = $ name ;
439
+ $ this ->processTitle = $ title ;
440
440
441
441
return $ this ;
442
442
}
0 commit comments