1
0
Fork 0

Only allow self-updates when called from within a phar

pull/115/head
Jordi Boggiano 2011-11-16 13:49:00 +01:00
parent 5e311303e2
commit 761ad6d171
1 changed files with 4 additions and 1 deletions

View File

@ -66,7 +66,10 @@ class Application extends BaseApplication
$this->add(new Command\AboutCommand()); $this->add(new Command\AboutCommand());
$this->add(new Command\InstallCommand()); $this->add(new Command\InstallCommand());
$this->add(new Command\UpdateCommand()); $this->add(new Command\UpdateCommand());
$this->add(new Command\SelfUpdateCommand());
$this->add(new Command\DebugPackagesCommand()); $this->add(new Command\DebugPackagesCommand());
if ('phar:' === substr(__FILE__, 0, 5)) {
$this->add(new Command\SelfUpdateCommand());
}
} }
} }