Skip to content

Commit

Permalink
Update config.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Oct 12, 2023
1 parent 37b6251 commit c0b799e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"source-directory": "config"
},
"config-plugin": {
"web": "web.php"
"web": "web.php",
"params": "params.php"
}
},
"config": {
Expand Down
8 changes: 8 additions & 0 deletions config/params.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

declare(strict_types=1);

return [
// enable/disable debug mode
'yii.debug' => false,
];
11 changes: 7 additions & 4 deletions config/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

declare(strict_types=1);

return YII_ENV_DEV ?
[
/**
* @var array $params
*/
if (isset($params['yii.debug']) && $params['yii.debug'] === true) {
$debug = [
// configuration adjustments for 'dev' environment
'bootstrap' => ['debug'],
'modules' => [
Expand All @@ -13,5 +16,5 @@
// 'allowedIPs' => ['127.0.0.1', '::1'],
],
],
]
: [];
];
}

0 comments on commit c0b799e

Please sign in to comment.