WIP: Untested, solo caricati file di test
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
/*
|
||||
* Comment this file content if the service doesn't use any database
|
||||
*
|
||||
* Author: Riccardo Di Dato
|
||||
* Creation Date: 14 dic 2016
|
||||
*/
|
||||
|
||||
require_once(dirname(__FILE__)."/mongo/lib.config.php");
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
/*
|
||||
* lib.include.php
|
||||
* Author: Riccardo Di Dato
|
||||
* Creation Date: 18 gen 2019
|
||||
*/
|
||||
|
||||
require_once(dirname(__FILE__)."/mongo/lib.inclusion.php");
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
/*
|
||||
* lib.include.php
|
||||
* Author: Riccardo Di Dato
|
||||
* Creation Date: 18 gen 2019
|
||||
*/
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/*
|
||||
* Comment this file content if the service doesn't use any database
|
||||
*
|
||||
* Author: Riccardo Di Dato
|
||||
* Creation Date: 14 dic 2016
|
||||
*/
|
||||
|
||||
use ASD\DB\DaoRegistry;
|
||||
use ASD\DB\Mongo\MongoDao;
|
||||
|
||||
$dbName = getenv("ASD_MONGO_DBNAME");
|
||||
$dbUser = getenv("ASD_MONGO_USER");
|
||||
$dbPass = getenv("ASD_MONGO_PASSWORD");
|
||||
$dbLocation = getenv("ASD_MONGO_LOCATION");
|
||||
|
||||
$connectionString = "mongodb://".$dbUser.":".$dbPass."@".$dbLocation."/".$dbName;
|
||||
if ($dbUser === false || $dbPass === false) {
|
||||
$connectionString = "mongodb://".$dbLocation."/".$dbName;
|
||||
}
|
||||
|
||||
DaoRegistry::addDao(new MongoDao("main", $dbName, $connectionString), true);
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
/*
|
||||
* lib.include.php
|
||||
* Author: Riccardo Di Dato
|
||||
* Creation Date: 18 gen 2019
|
||||
*/
|
||||
|
||||
require_once(dirname(__FILE__)."/models/lib.inclusion.php");
|
||||
require_once(dirname(__FILE__)."/customFields/lib.inclusion.php");
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
/*
|
||||
* lib.include.php
|
||||
* Author: Riccardo Di Dato
|
||||
* Creation Date: 18 gen 2019
|
||||
*/
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user