Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6786f6d

Browse filesBrowse files
committed
[Console] Rename Command::setProcessName to Command::setProcessTitle
To be more consistant with the underlying system.
1 parent 71dc07c commit 6786f6d
Copy full SHA for 6786f6d

File tree

Expand file treeCollapse file tree

2 files changed

+9
-9
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+9
-9
lines changed
Open diff view settings
Collapse file

‎src/Symfony/Component/Console/CHANGELOG.md‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CHANGELOG
77
* deprecated TableHelper in favor of Table
88
* deprecated ProgressHelper in favor of ProgressBar
99
* added a way to set a default command instead of `ListCommand`
10-
* added a way to set the process name of a command
10+
* added a way to set the process title of a command
1111

1212
2.4.0
1313
-----
Collapse file

‎src/Symfony/Component/Console/Command/Command.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Command/Command.php
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Command
3333
{
3434
private $application;
3535
private $name;
36-
private $processName;
36+
private $processTitle;
3737
private $aliases = array();
3838
private $definition;
3939
private $help;
@@ -213,11 +213,11 @@ protected function initialize(InputInterface $input, OutputInterface $output)
213213
*/
214214
public function run(InputInterface $input, OutputInterface $output)
215215
{
216-
if (null !== $this->processName) {
216+
if (null !== $this->processTitle) {
217217
if (function_exists('cli_set_process_title')) {
218-
cli_set_process_title($this->processName);
218+
cli_set_process_title($this->processTitle);
219219
} elseif (function_exists('setproctitle')) {
220-
setproctitle($this->processName);
220+
setproctitle($this->processTitle);
221221
} elseif (OutputInterface::VERBOSITY_VERY_VERBOSE === $output->getVerbosity()) {
222222
$output->writeln('<comment>Install the proctitle PECL to be able to change the process title.</comment>');
223223
}
@@ -423,20 +423,20 @@ public function setName($name)
423423
}
424424

425425
/**
426-
* Sets the process name of the command.
426+
* Sets the process title of the command.
427427
*
428428
* This feature should be used only when creating a long process command,
429429
* like a daemon.
430430
*
431431
* PHP 5.5+ or the proctitle PECL library is required
432432
*
433-
* @param string $name The process name
433+
* @param string $title The process title
434434
*
435435
* @return Command The current instance
436436
*/
437-
public function setProcessName($name)
437+
public function setProcessTitle($title)
438438
{
439-
$this->processName = $name;
439+
$this->processTitle = $title;
440440

441441
return $this;
442442
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.