Conditions | 4 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function bootstrap($qpp) |
||
18 | { |
||
19 | //Merge main extension config with local extension config |
||
20 | $config = include(dirname(__FILE__) . '/config/main.php'); |
||
21 | foreach ($config as $key => $value) { |
||
22 | if (is_array($value)) { |
||
23 | $this->{$key} = ArrayHelper::merge($value, $this->{$key}); |
||
24 | } elseif (null === $this->{$key}) { |
||
25 | $this->{$key} = $value; |
||
26 | } |
||
27 | } |
||
28 | |||
29 | Yii::setAlias('@yiicod', realpath(dirname(__FILE__) . '/..')); |
||
30 | // Namespace for migration |
||
31 | Yii::setAlias('@yiicod_auth_migrations', realpath(dirname(__FILE__) . '/migrations')); |
||
32 | } |
||
33 | } |
||
34 |