\Composer\InstallerSuggestedPackagesReporter

Add suggested packages from different places to output them in the end.

Summary

Methods
Properties
Constants
__construct()
getPackages()
addPackage()
addSuggestionsFromPackage()
output()
No public properties found
No constants found
No protected methods found
$suggestedPackages
N/A
escapeOutput()
removeControlCharacters()
$io
N/A

Properties

$suggestedPackages

$suggestedPackages : array

Type

array

Methods

getPackages()

getPackages() : array

Returns

array —

Suggested packages with source, target and reason keys.

addPackage()

addPackage(string  $source, string  $target, string  $reason) : \Composer\Installer\SuggestedPackagesReporter

Add suggested packages to be listed after install

Could be used to add suggested packages both from the installer or from CreateProjectCommand.

Parameters

string $source

Source package which made the suggestion

string $target

Target package to be suggested

string $reason

Reason the target package to be suggested

Returns

\Composer\Installer\SuggestedPackagesReporter

escapeOutput()

escapeOutput(string  $string) : string

Parameters

string $string

Returns

string

removeControlCharacters()

removeControlCharacters(string  $string) : string

Parameters

string $string

Returns

string