From: Roland Haeder Date: Wed, 27 May 2015 01:29:26 +0000 (+0200) Subject: Updated to latest 'core' + convertToClassName() and convertDashesToUnderscores()... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ddcbc1dcbac95591bbaa7ece0011c1b6ff93e851;p=city.git Updated to latest 'core' + convertToClassName() and convertDashesToUnderscores() are now static. Signed-off-by: Roland Haeder --- diff --git a/application/city/class_ApplicationHelper.php b/application/city/class_ApplicationHelper.php index f713acb..10739dd 100644 --- a/application/city/class_ApplicationHelper.php +++ b/application/city/class_ApplicationHelper.php @@ -157,7 +157,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica $responseType = self::getResponseTypeFromSystem(); // Create a new request object - $requestInstance = ObjectFactory::createObjectByName($this->convertToClassName($response) . 'Request'); + $requestInstance = ObjectFactory::createObjectByName(self::convertToClassName($response) . 'Request'); // Remember request instance here $this->setRequestInstance($requestInstance); @@ -170,7 +170,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica } // END - if // ... and a new response object - $responseClass = sprintf('%sResponse', $this->convertToClassName($response)); + $responseClass = sprintf('%sResponse', self::convertToClassName($response)); $responseInstance = ObjectFactory::createObjectByName($responseClass, array($this)); // Remember response instance here @@ -189,7 +189,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica } // END - if // Get a controller resolver - $resolverClass = $this->convertToClassName($this->getAppShortName() . '_' . $responseType . '_controller_resolver'); + $resolverClass = self::convertToClassName($this->getAppShortName() . '_' . $responseType . '_controller_resolver'); $resolverInstance = ObjectFactory::createObjectByName($resolverClass, array($commandName, $this)); // Get a controller instance as well diff --git a/core b/core index a578894..2b6327b 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit a57889486c1cbc1a24f5926a02a80d319ed88a86 +Subproject commit 2b6327b96c604709e7b244b0171b753a13f7d270