File tree 9 files changed +30
-85
lines changed
9 files changed +30
-85
lines changed Original file line number Diff line number Diff line change 2
2
type : yii2-extension
3
3
name : asset-packagist
4
4
namespace : hiqdev\assetpackagist
5
-
6
- include :
7
- - .hidev/goals.yml
8
-
9
- config : src/config/console.php
10
-
Original file line number Diff line number Diff line change 57
57
},
58
58
"extra" : {
59
59
"extension-plugin" : {
60
- "hisite-config" : " src/hisite-config.php"
60
+ "hidev-config" : " src/config/hidev.php" ,
61
+ "hisite-config" : " src/config/hisite.php"
61
62
}
62
63
},
63
64
"repositories" : [
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ return [
4
+ '@storage ' => '<base-dir>/web ' ,
5
+ '@bower ' => '@vendor/bower-asset ' ,
6
+ '@npm ' => '@vendor/npm-asset ' ,
7
+ ];
Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change 10
10
*/
11
11
12
12
return [
13
- 'aliases ' => [
14
- 'storage ' => dirname (dirname (__DIR__ )) . '/web ' ,
13
+ 'aliases ' => require __DIR__ . '/aliases.php ' ,
14
+ 'params ' => require __DIR__ . '/params.php ' ,
15
+ 'components ' => [
16
+ 'config ' => [
17
+ 'include ' => '@hiqdev/assetpackagist/config/goals.yml ' ,
18
+ ],
15
19
],
16
20
];
Original file line number Diff line number Diff line change 17
17
'runtimePath ' => '<base-dir>/runtime ' ,
18
18
'controllerNamespace ' => 'hiqdev\assetpackagist\controllers ' ,
19
19
'bootstrap ' => ['log ' ],
20
- 'aliases ' => [
21
- '@storage ' => '<base-dir>/web ' ,
22
- '@npm ' => '@vendor/npm-asset ' ,
23
- '@bower ' => '@vendor/bower-asset ' ,
24
- ],
25
20
'components ' => [
26
21
'log ' => [
27
22
'traceLevel ' => 0 ,
32
27
],
33
28
],
34
29
],
30
+ 'cache ' => [
31
+ 'class ' => 'yii \\caching \\FileCache ' ,
32
+ ],
33
+ 'urlManager ' => [
34
+ 'enablePrettyUrl ' => true ,
35
+ 'showScriptName ' => false ,
36
+ ],
35
37
],
36
38
'modules ' => [],
39
+ 'aliases ' => require __DIR__ . '/aliases.php ' ,
40
+ 'params ' => require __DIR__ . '/params.php ' ,
37
41
];
Original file line number Diff line number Diff line change 9
9
* @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
10
10
*/
11
11
12
- $ params = [
13
- 'logo-text ' => 'Asset Packagist ' ,
14
- 'cookieValidationKey ' => ' 345sdfsadf ' ,
12
+ return [
13
+ 'cookieValidationKey ' => '' ,
14
+ 'debug_allowed_ips ' => [] ,
15
15
];
16
-
17
- $ local = __DIR__ . '/params-local.php ' ;
18
-
19
- return array_merge (
20
- $ params ,
21
- file_exists ($ local ) ? require $ local : []
22
- );
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- /*
4
- * Asset Packagist
5
- *
6
- * @link https://github.com/hiqdev/asset-packagist
7
- * @package asset-packagist
8
- * @license BSD-3-Clause
9
- * @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
10
- */
11
-
12
- $ config = require __DIR__ . '/common.php ' ;
13
-
14
- $ config ['components ' ]['urlManager ' ] = [
15
- 'enablePrettyUrl ' => true ,
16
- 'showScriptName ' => false ,
17
- ];
3
+ $ config = require HISITE_VENDOR_DIR . '/hiqdev/hisite-config.php ' ;
18
4
19
5
if (YII_DEBUG ) {
20
6
$ config ['bootstrap ' ]['debug ' ] = 'debug ' ;
21
7
$ config ['modules ' ]['debug ' ] = [
22
- 'class ' => 'yii\debug\Module ' ,
23
- 'allowedIPs ' => isset ( $ params [ ' debug_allowedIPs ' ]) ? $ params [ ' debug_allowedIPs ' ] : [ ],
8
+ 'class ' => 'yii\debug\Module ' ,
9
+ 'allowedIPs ' => $ config [ ' params ' ][ ' debug_allowed_ips ' ],
24
10
];
25
11
}
26
12
You can’t perform that action at this time.
0 commit comments