|
@@ 95-100 (lines=6) @@
|
| 92 |
|
$workflowManagerName = $managerOptions->getName(); |
| 93 |
|
|
| 94 |
|
$workflowManager = null; |
| 95 |
|
if ($serviceLocator->has($workflowManagerName)) { |
| 96 |
|
$workflowManager = $serviceLocator->get($workflowManagerName); |
| 97 |
|
} elseif (class_exists($workflowManagerName)) { |
| 98 |
|
$r = new \ReflectionClass($workflowManagerName); |
| 99 |
|
$workflowManager = $r->newInstance($r); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
if (!$workflowManager instanceof WorkflowInterface) { |
| 103 |
|
$errMsg = sprintf('Workflow not implements %s', WorkflowInterface::class); |
|
@@ 150-155 (lines=6) @@
|
| 147 |
|
$resolverServiceName = $config->getResolver(); |
| 148 |
|
$resolver = null; |
| 149 |
|
if ($resolverServiceName) { |
| 150 |
|
if ($serviceLocator->has($resolverServiceName)) { |
| 151 |
|
$resolver = $serviceLocator->get($resolverServiceName); |
| 152 |
|
} elseif (class_exists($resolverServiceName)) { |
| 153 |
|
$r = new \ReflectionClass($resolverServiceName); |
| 154 |
|
$resolver = $r->newInstance(); |
| 155 |
|
} |
| 156 |
|
|
| 157 |
|
if (!$resolver instanceof VariableResolverInterface) { |
| 158 |
|
$errMsg = sprintf('Resolver not implements %s', VariableResolverInterface::class); |
|
@@ 166-171 (lines=6) @@
|
| 163 |
|
$factory = null; |
| 164 |
|
if ($config->hasFactoryOptions()) { |
| 165 |
|
$factoryServiceName = $config->getFactoryOptions()->getName(); |
| 166 |
|
if ($serviceLocator->has($factoryServiceName)) { |
| 167 |
|
$factory = $serviceLocator->get($factoryServiceName); |
| 168 |
|
} elseif (class_exists($resolverServiceName)) { |
| 169 |
|
$r = new \ReflectionClass($factoryServiceName); |
| 170 |
|
$factory = $r->newInstance(); |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
if (!$factory instanceof WorkflowFactoryInterface) { |
| 174 |
|
$errMsg = sprintf('Factory not implements %s', WorkflowFactoryInterface::class); |