ProcessCommand: align usage of list methods

This commit is contained in:
Thomas Gelf 2017-01-03 11:38:41 +01:00
parent 40de5a2b4d
commit 7d82bb05bd

View file

@ -49,7 +49,7 @@ class ProcessCommand extends Command
public function listAction()
{
$noTitle = $this->params->shift('no-title');
foreach ($this->storage->listProcesses() as $key => $title) {
foreach ($this->storage->listProcessNames() as $key => $title) {
if ($noTitle) {
echo $key . "\n";
} else {
@ -146,7 +146,7 @@ class ProcessCommand extends Command
protected function getFirstProcessName()
{
$list = $this->storage->listProcesses();
$list = $this->storage->listProcessNames();
return key($list);
}
}