public function Command::getProcessedHelp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Command/Command.php \Symfony\Component\Console\Command\Command::getProcessedHelp()
Returns the processed help for the command replacing the %command.name% and %command.full_name% patterns with the real values dynamically.
Return value
string The processed help for the command
File
- vendor/
symfony/ console/ Command/ Command.php, line 500
Class
- Command
- Base class for all commands.
Namespace
Symfony\Component\Console\CommandCode
public function getProcessedHelp() {
$name = $this->name;
$placeholders = array(
'%command.name%',
'%command.full_name%',
);
$replacements = array(
$name,
$_SERVER['PHP_SELF'] . ' ' . $name,
);
return str_replace($placeholders, $replacements, $this
->getHelp() ?: $this
->getDescription());
}