Core/Executor/ObjectStateGroupManager.php 1 location
|
@@ 39-43 (lines=5) @@
|
| 36 |
|
*/ |
| 37 |
|
protected function create($step) |
| 38 |
|
{ |
| 39 |
|
foreach (array('names', 'identifier') as $key) { |
| 40 |
|
if (!isset($step->dsl[$key])) { |
| 41 |
|
throw new \Exception("The '$key' key is missing in a object state group creation definition"); |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
$objectStateService = $this->repository->getObjectStateService(); |
| 46 |
|
|
Core/Executor/ObjectStateManager.php 1 location
|
@@ 47-51 (lines=5) @@
|
| 44 |
|
*/ |
| 45 |
|
protected function create($step) |
| 46 |
|
{ |
| 47 |
|
foreach (array('object_state_group', 'names', 'identifier') as $key) { |
| 48 |
|
if (!isset($step->dsl[$key])) { |
| 49 |
|
throw new \Exception("The '$key' key is missing in a object state creation definition"); |
| 50 |
|
} |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
if (!count($step->dsl['names'])) { |
| 54 |
|
throw new \Exception('No object state names have been defined. Need to specify at least one to create the state.'); |