-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap-symfony-2.php
39 lines (32 loc) · 1.28 KB
/
bootstrap-symfony-2.php
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
34
35
36
37
38
<?php
namespace {
require_once('SSClientBase.php');
require_once('SSHttpRequest.php');
require_once('requests/SSHttpInterface.php');
require_once('requests/SSHttpRequestCurl.php');
require_once('requests/SSHttpRequestMultiCurl.php');
require_once('requests/SSHttpRequestSockets.php');
require_once('requests/SSHttpRequestThread.php');
require_once('SSLogsTracker.php');
require_once('SSUtilities.php');
require_once('platforms/SSSymfony2Client.php');
global $ss_client;
define('DOCS_URL', 'http://stacksight.io/docs/#getting-started');
class SymfonyBootstrap{
protected $ss_client;
public function __construct(){
global $ss_client;
$this->ss_client = & $ss_client;
if(defined('STACKSIGHT_TOKEN')){
if(defined('STACKSIGHT_APP_ID'))
$this->ss_client = new \SSSymfony2Client(STACKSIGHT_TOKEN, SSClientBase::PLATFORM_SYMFONY_2, STACKSIGHT_APP_ID);
else
$this->ss_client = new \SSSymfony2Client(STACKSIGHT_TOKEN, SSClientBase::PLATFORM_SYMFONY_2);
define('STACKSIGHT_BOOTSTRAPED', TRUE);
}
}
public function getClient(){
return $this->ss_client;
}
}
}