ConsoleUtil
API reference › Foxy › Util › ConsoleUtil
Helper for console.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
getInput() static | Get the console input. | ConsoleUtil |
getPreferredInstallOptions() static | Returns preferSource and preferDist values based on the configuration. | ConsoleUtil |
Method details
Section titled “Method details”getInput()
Section titled “getInput() ”public static function getInput(Composer\IO\IOInterface $io): Symfony\Component\Console\Input\InputInterfaceGet the console input.
Parameters
| Parameter | Type | Description |
|---|---|---|
$io | Composer\ | The IO |
Returns
Symfony\Component\Console\Input\InputInterface
getPreferredInstallOptions()
Section titled “getPreferredInstallOptions() ”public static function getPreferredInstallOptions(Composer\Config $config, Symfony\Component\Console\Input\InputInterface $input): arrayReturns preferSource and preferDist values based on the configuration.
Parameters
| Parameter | Type | Description |
|---|---|---|
$config | Composer\ | The composer config. |
$input | Symfony\ | The console input |
Returns
array