You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 19, 2021. It is now read-only.
kherge edited this page Mar 14, 2013
·
3 revisions
The Command class is the command that manages the user interaction for updating/upgrading your Phar application. There are few things to note before using the Command class:
You must register the Helper class as a helper.
You must give it a name: $command = new Command('update');
You must set the manifest URI: $command->setManifestUri('http://example.com/manifest.json')
Example
This is an example of how you register Amend with your Symfony Console application:
<?phpuseKevinGH\Amend;
useSymfony\Component\Console\Application;
// Create your app using a semantic version number$app = newApplication('Test', '1.0.0');
// Register the helper$app->getHelperSet()->set(newAmend\Helper());
// Create the command and configure it$command = newAmend\Command('update');
$command->setManifestUri('http://example.com/manifest.json')
// Register the command$app->add($command);
If $disable is set to true, users will not be able to upgrade the Phar application to the next available major version (1.0.0 > 2.0.0). Users will only be able to update within the same major version number (1.2.3 > 1.3.4).