class OutdatedCommand extends ShowCommand (View source)

Properties

protected VersionParser $versionParser from ShowCommand
protected $colors from ShowCommand

Methods

getComposer(bool $required = true, bool|null $disablePlugins = null)

No description

setComposer(Composer $composer)

No description

resetComposer()

Removes the cached composer instance

bool
isProxyCommand()

Whether or not this command is meant to call another command.

getIO()

No description

setIO(IOInterface $io)

No description

initialize(InputInterface $input, OutputInterface $output)

{@inheritDoc}

bool[]
getPreferredInstallOptions(Config $config, InputInterface $input, bool $keepVcsRequiresPreferSource = false)

Returns preferSource and preferDist values based on the configuration.

configure()

No description

execute(InputInterface $input, OutputInterface $output)

No description

getRootRequires()

No description

getVersionStyle(PackageInterface $latestPackage, PackageInterface $package)

No description

array
getPackage(RepositoryInterface $installedRepo, RepositoryInterface $repos, string $name, ConstraintInterface|string $version = null)

finds a package by name and version if provided

printMeta(CompletePackageInterface $package, array $versions, RepositoryInterface $installedRepo, PackageInterface $latestPackage = null)

Prints package metadata.

printVersions(CompletePackageInterface $package, array $versions, RepositoryInterface $installedRepo)

Prints all available versions of this package and highlights the installed one if any.

printLinks(CompletePackageInterface $package, string $linkType, string $title = null)

print link objects

printLicenses(CompletePackageInterface $package)

Prints the licenses of a package with metadata

initStyles(OutputInterface $output)

Init styles for tree

displayPackageTree(PackageInterface $package, RepositoryInterface $installedRepo, RepositoryInterface $distantRepos)

Display the tree

displayTree(string $name, PackageInterface|string $package, RepositoryInterface $installedRepo, RepositoryInterface $distantRepos, array $packagesInTree, string $previousTreeBar = '├', int $level = 1)

Display a package tree

Details

Composer getComposer(bool $required = true, bool|null $disablePlugins = null)

Parameters

bool $required
bool|null $disablePlugins

Return Value

Composer

Exceptions

RuntimeException

setComposer(Composer $composer)

Parameters

Composer $composer

resetComposer()

Removes the cached composer instance

bool isProxyCommand()

Whether or not this command is meant to call another command.

This is mainly needed to avoid duplicated warnings messages.

Return Value

bool

IOInterface getIO()

Return Value

IOInterface

setIO(IOInterface $io)

Parameters

IOInterface $io

protected initialize(InputInterface $input, OutputInterface $output)

{@inheritDoc}

Parameters

InputInterface $input
OutputInterface $output

protected bool[] getPreferredInstallOptions(Config $config, InputInterface $input, bool $keepVcsRequiresPreferSource = false)

Returns preferSource and preferDist values based on the configuration.

Parameters

Config $config
InputInterface $input
bool $keepVcsRequiresPreferSource

Return Value

bool[] An array composed of the preferSource and preferDist values

protected configure()

protected execute(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

protected getRootRequires()

protected getVersionStyle(PackageInterface $latestPackage, PackageInterface $package)

Parameters

PackageInterface $latestPackage
PackageInterface $package

protected array getPackage(RepositoryInterface $installedRepo, RepositoryInterface $repos, string $name, ConstraintInterface|string $version = null)

finds a package by name and version if provided

Parameters

RepositoryInterface $installedRepo
RepositoryInterface $repos
string $name
ConstraintInterface|string $version

Return Value

array array(CompletePackageInterface, array of versions)

Exceptions

InvalidArgumentException

protected printMeta(CompletePackageInterface $package, array $versions, RepositoryInterface $installedRepo, PackageInterface $latestPackage = null)

Prints package metadata.

Parameters

CompletePackageInterface $package
array $versions
RepositoryInterface $installedRepo
PackageInterface $latestPackage

protected printVersions(CompletePackageInterface $package, array $versions, RepositoryInterface $installedRepo)

Prints all available versions of this package and highlights the installed one if any.

Parameters

CompletePackageInterface $package
array $versions
RepositoryInterface $installedRepo

print link objects

Parameters

CompletePackageInterface $package
string $linkType
string $title

protected printLicenses(CompletePackageInterface $package)

Prints the licenses of a package with metadata

Parameters

CompletePackageInterface $package

protected initStyles(OutputInterface $output)

Init styles for tree

Parameters

OutputInterface $output

protected displayPackageTree(PackageInterface $package, RepositoryInterface $installedRepo, RepositoryInterface $distantRepos)

Display the tree

Parameters

PackageInterface $package
RepositoryInterface $installedRepo
RepositoryInterface $distantRepos

protected displayTree(string $name, PackageInterface|string $package, RepositoryInterface $installedRepo, RepositoryInterface $distantRepos, array $packagesInTree, string $previousTreeBar = '├', int $level = 1)

Display a package tree

Parameters

string $name
PackageInterface|string $package
RepositoryInterface $installedRepo
RepositoryInterface $distantRepos
array $packagesInTree
string $previousTreeBar
int $level