forked from RealQuestions/apiengine-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.inc
33 lines (22 loc) · 756 Bytes
/
config.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
require_once('vendor/autoload.php');
$dotenv = new Dotenv\Dotenv(__DIR__);
$dotenv->load();
$n4host = getenv('n4host');
$n4port = getenv('n4port');
$n4user = getenv('n4user');
$n4password = getenv('n4password');
$FaceBkAccess = getenv('fbaccess');
$app_id = getenv('app_id');
$app_secret = getenv('app_secret');
$client = New Everyman\Neo4j\Client($n4host, $n4port);
$client->getTransport()
->setAuth($n4user, $n4password);
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
// create a log channel
$log = new Logger('name');
$log->pushHandler(new StreamHandler('/tmp/log', Logger::WARNING));
/* spl_autoload_register(function ($class) {
include_once 'HttpJsonClass.php';
});*/