PHP Class Yosymfony\Spress\Core\DataSource\DataSourceManagerBuilder

Author: Victor Puertas ([email protected])
Afficher le fichier Open project: spress/spress Class Usage Examples

Protected Properties

Свойство Type Description
$parameterKeys
$parameterValues
$parameters

Méthodes publiques

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

Méthodes protégées

Méthode Description
resolveArgumentsParameters ( array $arguments ) : array Resolve parameters in arguments.

Method Details

__construct() public méthode

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 méthode

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
Résultat DataSourceManager

resolveArgumentsParameters() protected méthode

Resolve parameters in arguments.
protected resolveArgumentsParameters ( array $arguments ) : array
$arguments array
Résultat array

Property Details

$parameterKeys protected_oe property

protected $parameterKeys

$parameterValues protected_oe property

protected $parameterValues

$parameters protected_oe property

protected $parameters