achertovsky / yii2-debug-cli
此包已被废弃,不再维护。未建议替代包。
打开 CLI 脚本以实现 /debug 访问
dev-master
2021-07-07 13:37 UTC
Requires
- php: >=5.4.0
- achertovsky/yii2-json-formatter: @dev
- yiisoft/yii2-debug: 2.1.4
This package is auto-updated.
Last update: 2022-06-07 15:29:11 UTC
README
描述
模块,用于在 /debug 中显示 CLI 脚本(如果需要的话)
希望它对您有用。
安装
安装此扩展的首选方式是通过 composer。
{
"require": {
"achertovsky/yii2-debug-cli": "@dev"
}
}
或者
composer require achertovsky/yii2-debug-cli "@dev"
使用方法
要开始使用它,请将其添加到您的模块部分
例如
'debug' => [
'class' => 'achertovsky\debug\Module',
'logTarget' => 'achertovsky\debug\LogTarget',
],
在高级模板 personally me 中,我在 common/config/main.php 中使用它
在基本模板中,我会(从未)将其同时放入 config/web.php 和 config/console.php(等待反馈)
错误中心的用法
- 迁移
./yii migrate/up -p vendor/achertovsky/yii2-debug-cli/migrations
- 为了覆盖所有入口点,建议在主配置中定义调度器
- 在高级模板 personally me 中,我在 common/config/main.php 中使用它
- 在基本模板中,我会(从未)将其同时放入 config/web.php 和 config/console.php(等待反馈)
'components' => [
'log' => [
'class' => '\achertovsky\debug\log\Dispatcher',
//...
],
//...
]
- 使用它。/debug/error-hub