From: Roland Häder Date: Thu, 20 Dec 2012 21:42:15 +0000 (+0000) Subject: Global fix for generating right class name for controller resolver (to make that... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=37bd940e072c7c66f894b6c8abae6f62cb38a4ac;p=shipsimu.git Global fix for generating right class name for controller resolver (to make that code part more generic and later move out to 'core' project as a new class/method) --- diff --git a/application/selector/class_ApplicationHelper.php b/application/selector/class_ApplicationHelper.php index 3eba458..dea9158 100644 --- a/application/selector/class_ApplicationHelper.php +++ b/application/selector/class_ApplicationHelper.php @@ -188,8 +188,8 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica $requestInstance->setRequestElement('command', $commandName); } // END - if - // Get a resolver - $resolverClass = $this->convertToClassName($this->getAppShortName() . '_' . $responseType); + // Get a controller resolver + $resolverClass = $this->convertToClassName($this->getAppShortName() . '_' . $responseType . '_controller_resolver'); $resolverInstance = ObjectFactory::createObjectByName($resolverClass, array($commandName, $this)); // Get a controller instance as well diff --git a/application/ship-simu/class_ApplicationHelper.php b/application/ship-simu/class_ApplicationHelper.php index 3eba458..dea9158 100644 --- a/application/ship-simu/class_ApplicationHelper.php +++ b/application/ship-simu/class_ApplicationHelper.php @@ -188,8 +188,8 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica $requestInstance->setRequestElement('command', $commandName); } // END - if - // Get a resolver - $resolverClass = $this->convertToClassName($this->getAppShortName() . '_' . $responseType); + // Get a controller resolver + $resolverClass = $this->convertToClassName($this->getAppShortName() . '_' . $responseType . '_controller_resolver'); $resolverInstance = ObjectFactory::createObjectByName($resolverClass, array($commandName, $this)); // Get a controller instance as well