This repository has been archived by the owner on Mar 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
propel.php
55 lines (49 loc) · 1.6 KB
/
propel.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
49
50
51
52
53
54
55
<?php
/**
* This file is part of the Minion\Tests package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
namespace Minion\Propel\Config;
use Minion\Utils;
/**
* Propel default configuration file.
*
* @package Minion
* @author Damian Szczerbiński <dszczer@gmail.com>
*/
$root = \realpath(__DIR__ . '/../../../');
$arr = \array_replace_recursive([
'propel' => [
'paths' => [
'projectDir' => $root,
'schemaDir' => $root . Utils::fixPath('/app'),
'outputDir' => $root . Utils::fixPath('/src/Propel'),
'phpDir' => $root . Utils::fixPath('/src/Propel'),
'phpConfDir' => $root . Utils::fixPath('/app/propel/runtime'),
'migrationDir' => $root . Utils::fixPath('/app/propel/migration'),
'sqlDir' => $root . Utils::fixPath('/app/propel/sql')
],
'runtime' => [
'defaultConnection' => 'default',
'connections' => ['default'],
'log' => [
'defaultLogger' => [
'type' => 'stream',
'level' => 300,
'path' => $root . Utils::fixPath('/var/log/propel.log')
]
]
],
'generator' => [
'defaultConnection' => 'default',
'connections' => ['default'],
'objectModel' => [
'addHooks' => false // slightly performance improvement
]
]
]
], include($root . Utils::fixPath('/propel.php')));
return $arr;