PHP Class Peridot\Console\ConfigurationReader

Datei anzeigen Open project: peridot-php/peridot Class Usage Examples

Protected Properties

Property Type Description
$input Symfony\Component\Console\Input\InputInterface

Public Methods

Method Description
__construct ( Symfony\Component\Console\Input\InputInterface $input )
read ( ) : Configuration Read configuration information from input
readInput ( Symfony\Component\Console\Input\InputInterface $input ) : Configuration Static access to reader

Protected Methods

Method Description
callForOption ( string $optionName, callable $callable ) Execute a callback if the input object has a value for the given option name.

Method Details

__construct() public method

public __construct ( Symfony\Component\Console\Input\InputInterface $input )
$input Symfony\Component\Console\Input\InputInterface

callForOption() protected method

Execute a callback if the input object has a value for the given option name.
protected callForOption ( string $optionName, callable $callable )
$optionName string
$callable callable

read() public method

Read configuration information from input
public read ( ) : Configuration
return Peridot\Configuration

readInput() public static method

Static access to reader
public static readInput ( Symfony\Component\Console\Input\InputInterface $input ) : Configuration
$input Symfony\Component\Console\Input\InputInterface
return Peridot\Configuration

Property Details

$input protected_oe property

protected InputInterface,Symfony\Component\Console\Input $input
return Symfony\Component\Console\Input\InputInterface