Hide self-update when composer installed.

This commit is contained in:
Anton Medvedev 2016-11-13 16:14:33 +07:00
parent eab095dfd7
commit c765f00a46

View File

@ -42,7 +42,9 @@ class Application extends Console
protected function getDefaultCommands()
{
$commands = parent::getDefaultCommands();
$commands[] = $this->selfUpdateCommand();
if ('phar:' === substr(__FILE__, 0, 5)) {
$commands[] = $this->selfUpdateCommand();
}
return $commands;
}