From 37bd940e072c7c66f894b6c8abae6f62cb38a4ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 20 Dec 2012 21:42:15 +0000 Subject: [PATCH] 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) --- application/selector/class_ApplicationHelper.php | 4 ++-- application/ship-simu/class_ApplicationHelper.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5