From: Roland Haeder Date: Sat, 25 Feb 2017 16:30:42 +0000 (+0100) Subject: Fixed and continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dfaae5be1dbac2ba13bbb315c3e6c672b490cdbe;p=core.git Fixed and continued: - need to call ApplicationHelper::createDebugInstance() before inc/database.php is being loaded. This is old way anyway and will be rewritten right after this rewrite. - added "import" of CachedDatabaseResult and moved it to better namespace - added "import of SearchableResult - fixed config entry for it - first BaseDatabaseResult is a result, then it is for databases (queries) Signed-off-by: Roland Häder --- diff --git a/application/tests/init.php b/application/tests/init.php index 00cf2f4d..188d06af 100644 --- a/application/tests/init.php +++ b/application/tests/init.php @@ -1,6 +1,7 @@ getConfigEntry('base_path') . 'inc/database.php'); diff --git a/inc/config.php b/inc/config.php index b33f3d36..bd6ef833 100644 --- a/inc/config.php +++ b/inc/config.php @@ -182,7 +182,7 @@ $cfg->setConfigEntry('update_criteria_class', 'UpdateCriteria'); $cfg->setConfigEntry('file_io_class', 'CoreFramework\Handler\Filesystem\FileIoHandler'); // CFG: DATABASE-RESULT-CLASS -$cfg->setConfigEntry('database_result_class', 'CachedDatabaseResult'); +$cfg->setConfigEntry('database_result_class', 'CoreFramework\Result\Database\CachedDatabaseResult'); // CFG: FILTER-CHAIN-CLASS $cfg->setConfigEntry('filter_chain_class', 'CoreFramework\Chain\Filter\FilterChain'); diff --git a/inc/main/classes/class_BaseFrameworkSystem.php b/inc/main/classes/class_BaseFrameworkSystem.php index f306b320..e4c03668 100644 --- a/inc/main/classes/class_BaseFrameworkSystem.php +++ b/inc/main/classes/class_BaseFrameworkSystem.php @@ -23,6 +23,8 @@ use CoreFramework\Registry\Register; use CoreFramework\Registry\Registry; use CoreFramework\Request\Requestable; use CoreFramework\Resolver\Resolver; +use CoreFramework\Result\Database\CachedDatabaseResult; +use CoreFramework\Result\Search\SearchableResult; use CoreFramework\Response\Responseable; use CoreFramework\Stream\Output\OutputStreamer; use CoreFramework\Template\CompileableTemplate; diff --git a/inc/main/classes/database/class_BaseDatabaseResult.php b/inc/main/classes/database/class_BaseDatabaseResult.php index 3d598db4..eac2e343 100644 --- a/inc/main/classes/database/class_BaseDatabaseResult.php +++ b/inc/main/classes/database/class_BaseDatabaseResult.php @@ -1,6 +1,6 @@