xervice / configurator
2.0.0
2019-04-03 19:18 UTC
Requires
- php: >=7.1.0
- xervice/data-provider: ^2.2.0
Requires (Dev)
This package is auto-updated.
Last update: 2025-03-04 09:34:51 UTC
README
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 }