$requestInstance->setRequestElement('command', $commandName);
}
- // Get a controller resolver
- $resolverClass = sprintf(
- 'Org\Mxchange\CoreFramework\Tests\Resolver\Controller\%s',
- StringUtils::convertToClassName(sprintf(
- '%s_%s_controller_resolver',
- $this->getAppShortName(),
- FrameworkBootstrap::getRequestTypeFromSystem()
- ))
+ // Configuration entry key
+ $configEntry = sprintf(
+ '%s_%s_controller_resolver_class',
+ $this->getAppShortName(),
+ FrameworkBootstrap::getRequestTypeFromSystem()
);
- $resolverInstance = ObjectFactory::createObjectByName($resolverClass, array($commandName));
+
+ // Get a controller resolver instance
+ $resolverInstance = ObjectFactory::createObjectByConfiguredName($configEntry, [
+ $commandName,
+ ]);
// Get a controller instance as well
$this->setControllerInstance($resolverInstance->resolveController());