xervice/configurator

2.0.0 2019-04-03 19:18 UTC

This package is auto-updated.

Last update: 2024-05-04 07:38:13 UTC


README

Build Status Scrutinizer Code Quality Code Coverage

Possibility to loop your step classes to complete a DataProvider.

Installation

composer require xervice/configurator

Using

To use it, you have to write your Steps by implementing StepInterface or extending AbstractStep. After that you can use the facade:

$stepCollection = new StepCollection(
    [
        new MyStepOne(),
        new MyStepTwo()
    ]
);

$myData = new MyOwnDataProvider();

$stepData = new StepDataDataProvider();
$stepData->setData($myData);

try {
    $completeStepData = $this->getFacade()->runConfigurator($stepCollection, $stepData);
} catch (ConfiguratorException $exception) {
    // Problems
}