\phpDocumentor\Command\PharUpdateCommand

Updates phpDocumentor.phar to the latest version.

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

Summary

Methods
Properties
Constants
No public methods found
No public properties found
MANIFEST_FILE
configure()
execute()
No protected properties found
N/A
createManager()
updateCurrentVersion()
No private properties found
N/A

Constants

MANIFEST_FILE

MANIFEST_FILE

Methods

configure()

configure() : void

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

execute()

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

Executes the business logic involved with this command.

Parameters

\Symfony\Component\Console\Input\InputInterface $input
\Symfony\Component\Console\Output\OutputInterface $output

Returns

integer

createManager()

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

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

Parameters

\Symfony\Component\Console\Output\OutputInterface $output

Returns

\Herrera\Phar\Update\Manager

updateCurrentVersion()

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

Updates current version.

Parameters

\Herrera\Phar\Update\Manager $manager
string $version
boolean|null $allowMajor
boolean|null $allowPreRelease
\Symfony\Component\Console\Output\OutputInterface $output