-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.example.php
48 lines (44 loc) · 1.28 KB
/
init.example.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
39
40
41
42
43
44
45
46
47
48
<?php
/**
* Example file for setting up the environment specific configuration
*
* Note: you probably don't want to use the configuration in your project
* directly, but instead you want to:
* 1) copy this file
* 2) make the changes to the copy for your specific environment
* 3) load your specific configuration file in the init.deployment.php file
*
* PHP version 5.5
*
* @category Feedr
* @author Pieter Hordijk <[email protected]>
* @copyright Copyright (c) 2013 Pieter Hordijk <https://github.com/PeeHaa>
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @version 1.0.0
*/
namespace Feedr;
/**
* Setup error reporting
*/
error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('log_errors', 0);
/**
* Setup timezone
*/
ini_set('date.timezone', 'Europe/Amsterdam');
/**
* Setup database connection
*/
$dbConnection = new \PDO('pgsql:dbname=feedr;host=127.0.0.1', '', '');
$dbConnection->setAttribute(\PDO::ATTR_EMULATE_PREPARES, false);
$dbConnection->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
$dbConnection->setAttribute(\PDO::ATTR_DEFAULT_FETCH_MODE, \PDO::FETCH_ASSOC);
/**
* Setup GitHub API credentials
*/
$githubCredentials = [
'key' => '',
'secret' => '',
'cli_token' => '',
];