From: Roland Haeder Date: Wed, 22 Feb 2017 22:26:42 +0000 (+0100) Subject: namespace added, this *must* be applied now to all calls of ObjectFactory methods X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=4d0ccf3c0e7162cbe32df98a6d127c86525c1b8a namespace added, this *must* be applied now to all calls of ObjectFactory methods Signed-off-by: Roland Häder --- diff --git a/application/tests/class_ApplicationHelper.php b/application/tests/class_ApplicationHelper.php index fdf74a81..670cf901 100644 --- a/application/tests/class_ApplicationHelper.php +++ b/application/tests/class_ApplicationHelper.php @@ -168,7 +168,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica $responseType = self::getResponseTypeFromSystem(); // Create a new request object - $requestInstance = ObjectFactory::createObjectByName(self::convertToClassName($response) . 'Request'); + $requestInstance = ObjectFactory::createObjectByName(sprintf('\CoreFramework\Request\%sRequest', self::convertToClassName($response))); // Remember request instance here $this->setRequestInstance($requestInstance); @@ -181,7 +181,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica } // END - if // ... and a new response object - $responseClass = sprintf('%sResponse', self::convertToClassName($response)); + $responseClass = sprintf('\CoreFramework\Response\%sResponse', self::convertToClassName($response)); $responseInstance = ObjectFactory::createObjectByName($responseClass, array($this)); // Remember response instance here diff --git a/inc/main/classes/request/class_ b/inc/main/classes/request/class_ index 848d3c8a..e046132a 100644 --- a/inc/main/classes/request/class_ +++ b/inc/main/classes/request/class_ @@ -1,4 +1,7 @@