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:
parent
a4e1a291ed
commit
6f7316e421
2 changed files with 5 additions and 1 deletions
|
@ -51,7 +51,7 @@ class SemanticScuttle_Service_Factory
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected static $serviceoverrides = array();
|
public static $serviceoverrides = array();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -57,6 +57,10 @@ require_once 'SemanticScuttle/DbService.php';
|
||||||
require_once 'SemanticScuttle/Service/Factory.php';
|
require_once 'SemanticScuttle/Service/Factory.php';
|
||||||
require_once 'SemanticScuttle/functions.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
|
// 3 // Third requirements part which import functions from includes/ directory
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue