UpdateCommand

Extends \Symfony\Component\Console\Command\Command

Updates phpDocumentor.phar to the latest version.

$ php phpDocumentor.phar phar:update [-m|--major] [-p|--pre] [version]
package

Default

Methods

Initializes this command and sets the name, description, options and arguments.

configure() : void

Returns manager instance or exit with status code 1 on failure.

createManager(\Symfony\Component\Console\Output\OutputInterface $output) : \Herrera\Phar\Update\Manager

Arguments

$output

\Symfony\Component\Console\Output\OutputInterface

Response

\Herrera\Phar\Update\Manager

Executes the business logic involved with this command.

execute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output) : integer

Arguments

$input

\Symfony\Component\Console\Input\InputInterface

$output

\Symfony\Component\Console\Output\OutputInterface

Response

integer

Updates current version.

updateCurrentVersion(\Herrera\Phar\Update\Manager $manager, string $version, boolean|null $allowMajor, boolean|null $allowPreRelease, \Symfony\Component\Console\Output\OutputInterface $output) : void

Arguments

$manager

\Herrera\Phar\Update\Manager

$version

string

$allowMajor

boolean|null

$allowPreRelease

boolean|null

$output

\Symfony\Component\Console\Output\OutputInterface

Constants

MANIFEST_FILE

MANIFEST_FILE