PHP Class Yosymfony\Spress\Core\DataSource\DataSourceManagerBuilder

Author: Victor Puertas ([email protected])
Show file Open project: spress/spress Class Usage Examples

Protected Properties

Property Type Description
$parameterKeys
$parameterValues
$parameters

Public Methods

Method Description
__construct ( array $parameters = [] ) Constructor.
buildFromConfigArray ( array $config ) : DataSourceManager Build a data source manager with data sources loaded from config array.

Protected Methods

Method Description
resolveArgumentsParameters ( array $arguments ) : array Resolve parameters in arguments.

Method Details

__construct() public method

Constructor.
public __construct ( array $parameters = [] )
$parameters array A key-value array with available parameters. The signature of each key is %parameter_name%. e.g: .array( [%site_dir%] => './', )

buildFromConfigArray() public method

Config array structure: .Array ( [data_source_name_1] => Array ( [class] => Yosymfony\Spress\Core\DataSource\Filesystem\FilesystemDataSource [arguments] => Array ( [source_root] => %site_dir%/src ) ) [data_source_name_2] => Array ( ) )
public buildFromConfigArray ( array $config ) : DataSourceManager
$config array Configuration array with data about data sources
return DataSourceManager

resolveArgumentsParameters() protected method

Resolve parameters in arguments.
protected resolveArgumentsParameters ( array $arguments ) : array
$arguments array
return array

Property Details

$parameterKeys protected property

protected $parameterKeys

$parameterValues protected property

protected $parameterValues

$parameters protected property

protected $parameters