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

Use consolidation/self-update instead of padraic/phar-updater #169

Merged
merged 1 commit into from
Jan 8, 2021
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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"symfony/finder": "^4.0|^5.0",
"symfony/process": "^4.0|^5.0",
"symfony/yaml": "^4.0|^5.0",
"padraic/phar-updater": "^1.0"
"consolidation/self-update": "1.x-dev"
},
"require-dev": {
"phpunit/phpunit": "^8.0|^9.0"
Expand Down
244 changes: 123 additions & 121 deletions composer.lock

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

67 changes: 0 additions & 67 deletions src/Command/SelfUpdateCommand.php

This file was deleted.

3 changes: 2 additions & 1 deletion src/Console/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use CacheTool\Command as CacheToolCommand;
use CacheTool\Monolog\ConsoleHandler;
use Monolog\Logger;
use SelfUpdate\SelfUpdateCommand;
use Symfony\Component\Console\Application as BaseApplication;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputOption;
Expand Down Expand Up @@ -60,7 +61,7 @@ public function __construct(Config $config)
protected function getDefaultCommands()
{
$commands = parent::getDefaultCommands();
$commands[] = new CacheToolCommand\SelfUpdateCommand();
$commands[] = new SelfUpdateCommand('gordalina/cachetool','@package_version@', 'gordalina/cachetool');

if (in_array('apcu', $this->config['extensions'], true)) {
$commands[] = new CacheToolCommand\ApcuCacheClearCommand();
Expand Down