Skip to content

Commit

Permalink
[server] Add alias serve to command. (#3645)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Dec 31, 2017
1 parent 0aa7eff commit e8c91ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Command/ServerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected function configure()
InputArgument::OPTIONAL,
$this->trans('commands.server.arguments.address'),
'127.0.0.1:8088'
);
)->setAliases(['serve']);
}

/**
Expand Down Expand Up @@ -172,7 +172,8 @@ private function validatePort($address)
return $address;
}

function outputCallback($type, $buffer) {
public function outputCallback($type, $buffer)
{
// TODO: seems like $type is Process::ERR always
echo $buffer;
}
Expand Down

0 comments on commit e8c91ac

Please sign in to comment.