make serviceoverrides user-configurable

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@626 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
cweiske 2010-02-02 19:25:35 +00:00
parent a4e1a291ed
commit 6f7316e421
2 changed files with 5 additions and 1 deletions

View file

@ -51,7 +51,7 @@ class SemanticScuttle_Service_Factory
*
* @var array
*/
protected static $serviceoverrides = array();
public static $serviceoverrides = array();

View file

@ -57,6 +57,10 @@ require_once 'SemanticScuttle/DbService.php';
require_once 'SemanticScuttle/Service/Factory.php';
require_once 'SemanticScuttle/functions.php';
if (count($GLOBALS['serviceoverrides']) > 0) {
SemanticScuttle_Service_Factory::$serviceoverrides
= $GLOBALS['serviceoverrides'];
}
// 3 // Third requirements part which import functions from includes/ directory