for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Cpliakas\ManifestPublisher\Console;
use Herrera\Phar\Update\Manager;
use Herrera\Phar\Update\Manifest;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class SelfUpdateCommand extends Command
{
const MANIFEST_FILE = 'http://cpliakas.github.io/manifest-publisher/manifest.json';
protected function configure()
$this
->setName('self-update')
->setDescription('Updates manifest.phar to the latest version')
;
}
protected function execute(InputInterface $input, OutputInterface $output)
$manager = new Manager(Manifest::loadFile(self::MANIFEST_FILE));
$manager->update($this->getApplication()->getVersion(), true);