$requestInstance->setRequestElement('command', $commandName);
} // END - if
- // Is the responseType 'html' ?
- if ($responseType == 'html') {
+ // Is the request type 'html' ?
+ if (FrameworkBootstrap::getRequestTypeFromSystem() == 'html') {
// The language system is needed for this
$languageInstance = ObjectFactory::createObjectByConfiguredName('language_system_class');
} // END - if
// Get a controller resolver
- $resolverClass = self::convertToClassName($this->getAppShortName() . '_' . $responseType . '_controller_resolver');
+ $resolverClass = sprintf(
+ 'CoreFramework\Tests\Resolver\Controller\%s',
+ self::convertToClassName(sprintf(
+ '%s_%s_controller_resolver',
+ $this->getAppShortName(),
+ FrameworkBootstrap::getRequestTypeFromSystem()
+ ))
+ );
$resolverInstance = ObjectFactory::createObjectByName($resolverClass, array($commandName, $this));
// Get a controller instance as well
$this->setControllerInstance($resolverInstance->resolveController());
- // Launch the hub main routine here
+ // Launch the test suite here
$this->getControllerInstance()->handleRequest($requestInstance, $responseInstance);
// Only for console requests as this is the actual daemon
- if ($responseType == 'console') {
+ if ($requestType == 'console') {
// -------------------------- Shutdown phase --------------------------
// Shutting down the hub by saying "good bye" to all connected peers
// and other hubs, flushing all queues and caches.