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: 2024-09-04 08:29:49 UTC
README
将步骤类循环以完成 DataProvider 的可能性。
安装
composer require xervice/configurator
使用
要使用它,您必须通过实现 StepInterface 或扩展 AbstractStep 来编写步骤。之后,您可以使用外观
$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 }