Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove self-update command #199

Merged
merged 1 commit into from
May 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"php": "^7.1",
"nikic/php-parser": "^3.0",
"ocramius/package-versions": "^1.1",
"padraic/phar-updater": "^1.0",
"roave/better-reflection": "^2.0",
"symfony/console": "^3.2 || ^4.0",
"symfony/filesystem": "^3.2 || ^4.0",
Expand Down
113 changes: 2 additions & 111 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 0 additions & 17 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,12 @@
use Humbug\PhpScoper\Console\Application;
use Humbug\PhpScoper\Console\Command\AddPrefixCommand;
use Humbug\PhpScoper\Console\Command\InitCommand;
use Humbug\PhpScoper\Console\Command\SelfUpdateCommand;
use Humbug\PhpScoper\PhpParser\TraverserFactory;
use Humbug\PhpScoper\Scoper\Composer\InstalledPackagesScoper;
use Humbug\PhpScoper\Scoper\Composer\JsonFileScoper;
use Humbug\PhpScoper\Scoper\NullScoper;
use Humbug\PhpScoper\Scoper\PatchScoper;
use Humbug\PhpScoper\Scoper\PhpScoper;
use Humbug\SelfUpdate\Exception\RuntimeException as SelfUpdateRuntimeException;
use Humbug\SelfUpdate\Updater;
use Iterator;
use PackageVersions\Versions;
use PhpParser\Node;
Expand Down Expand Up @@ -56,20 +53,6 @@ function create_application(): SymfonyApplication
new InitCommand(),
]);

if ('phar:' === substr(__FILE__, 0, 5)) {
try {
$updater = new Updater();
} catch (SelfUpdateRuntimeException $e) {
/* Allow E2E testing of unsigned phar */
$updater = new Updater(null, false);
}
$app->add(
new SelfUpdateCommand(
$updater
)
);
}

return $app;
}

Expand Down