From: Roland Häder Date: Thu, 20 Dec 2012 21:42:00 +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=e74e8fa333616968ee968140c18a3f485373cada;p=mailer.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/mailer/class_ApplicationHelper.php b/application/mailer/class_ApplicationHelper.php index 869db169ad..8d528a3cc4 100644 --- a/application/mailer/class_ApplicationHelper.php +++ b/application/mailer/class_ApplicationHelper.php @@ -211,8 +211,8 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication $requestInstance->setRequestElement('page', $commandName); } // END - if - // Get a resolver - $resolverClass = sprintf("%sControllerResolver", $this->convertToClassName($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