summaryrefslogtreecommitdiff
path: root/services/servicefactory.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-12-18 11:03:40 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-12-18 11:03:40 +0000
commit4d122aa3fca560f9b93bfb5a8abe6feee96d9e61 (patch)
tree6a4e115cb6a6acfec68fe18cc330089725bdfae7 /services/servicefactory.php
parentd8a5adc285fbd9237d7c3140f6d6a11b6eceaaee (diff)
downloadsemanticscuttle-4d122aa3fca560f9b93bfb5a8abe6feee96d9e61.tar.gz
semanticscuttle-4d122aa3fca560f9b93bfb5a8abe6feee96d9e61.tar.bz2
Major refactoring: add a cache table to accelerate the search of linked tags by inference (children and synonyms)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@204 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'services/servicefactory.php')
-rw-r--r--services/servicefactory.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/servicefactory.php b/services/servicefactory.php
index f4d6af7..73e5626 100644
--- a/services/servicefactory.php
+++ b/services/servicefactory.php
@@ -16,7 +16,8 @@ class ServiceFactory {
if(!$db->db_connect_id) {
message_die(CRITICAL_ERROR, "Could not connect to the database", $db);
}
- }
+ }
+
if (!isset($instances[$name])) {
if (isset($serviceoverrules[$name])) {
$name = $serviceoverrules[$name];
@@ -25,6 +26,7 @@ class ServiceFactory {
if (!isset($servicedir)) {
$servicedir = dirname(__FILE__) .'/';
}
+
require_once($servicedir . strtolower($name) . '.php');
}
$instances[$name] = call_user_func(array($name, 'getInstance'), $db);