class Config extends Config (View source)

deprecated Use \Robo\Config\Config

Constants

PROGRESS_BAR_AUTO_DISPLAY_INTERVAL

DEFAULT_PROGRESS_DELAY

SIMULATE

INTERACTIVE

DECORATED

Properties

protected array $defaults from  Config

Methods

__construct(array $data = [])

Create a new configuration object, and initialize it with the provided nested array containing configuration data.

from  Config
import($data)

{@inheritdoc}

from  Config
replace($data)

{@inheritdoc}

from  Config
combine($data)

{@inheritdoc}

from  Config
array
getGlobalOptionDefaultValues()

Return an associative array containing all of the global configuration options and their default values.

from  Config
array
trimPrefixFromGlobalOptions(array $globalOptions)

Remove the 'options.' prefix from the global options list.

from  Config
bool
isSimulated() deprecated

No description

from  Config
$this
setSimulated(bool $simulated = true) deprecated

No description

from  Config
bool
isInteractive() deprecated

No description

from  Config
$this
setInteractive(bool $interactive = true) deprecated

No description

from  Config
bool
isDecorated() deprecated

No description

from  Config
$this
setDecorated(bool $decorated = true) deprecated

No description

from  Config
$this
setProgressBarAutoDisplayInterval(int $interval) deprecated

No description

from  Config

Details

__construct(array $data = [])

Create a new configuration object, and initialize it with the provided nested array containing configuration data.

Parameters

array $data

import($data)

{@inheritdoc}

Parameters

$data

replace($data)

{@inheritdoc}

Parameters

$data

combine($data)

{@inheritdoc}

Parameters

$data

array getGlobalOptionDefaultValues()

Return an associative array containing all of the global configuration options and their default values.

Return Value

array

protected array trimPrefixFromGlobalOptions(array $globalOptions)

Remove the 'options.' prefix from the global options list.

Parameters

array $globalOptions

Return Value

array

bool isSimulated() deprecated

deprecated Use $config->get(Config::SIMULATE)

No description

Return Value

bool

$this setSimulated(bool $simulated = true) deprecated

deprecated Use $config->set(Config::SIMULATE, true)

No description

Parameters

bool $simulated

Return Value

$this

bool isInteractive() deprecated

deprecated Use $config->get(Config::INTERACTIVE)

No description

Return Value

bool

$this setInteractive(bool $interactive = true) deprecated

deprecated Use $config->set(Config::INTERACTIVE, true)

No description

Parameters

bool $interactive

Return Value

$this

bool isDecorated() deprecated

deprecated Use $config->get(Config::DECORATED)

No description

Return Value

bool

$this setDecorated(bool $decorated = true) deprecated

deprecated Use $config->set(Config::DECORATED, true)

No description

Parameters

bool $decorated

Return Value

$this

$this setProgressBarAutoDisplayInterval(int $interval) deprecated

deprecated Use $config->set(Config::PROGRESS_BAR_AUTO_DISPLAY_INTERVAL, $interval)

No description

Parameters

int $interval

Return Value

$this