achertovsky/yii2-debug-cli

Opens CLI scripts for /debug access

Installs: 2 732

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 3

Forks: 2

Open Issues: 1

Type:yii2-extension

dev-master 2020-09-02 09:15 UTC

This package is auto-updated.

Last update: 2020-09-02 09:15:15 UTC


README

Description

Module to reveal CLI scripts in /debug (if its required)

I hope it will be useful for you.

Installing

The preferred way to install this extension is through composer.

{
	"require": {
	    "achertovsky/yii2-debug-cli": "@dev"
    }
}

or

	composer require achertovsky/yii2-debug-cli "@dev"

Usage

to start using it - please, add it to your modules section

for example:

'debug' => [
    'class' => 'achertovsky\debug\Module',
    'logTarget' => 'achertovsky\debug\LogTarget',
],

in advanced template personally me use it under common/config/main.php

in basic template i would (never did) put it both to config/web.php and config/console.php (waiting for feedbacks)

Usage of errors hub

  1. migrate ./yii migrate/up -p vendor/achertovsky/yii2-debug-cli/migrations
  2. to cover all entrypoints suggestion is to define dispatcher in main config
  • in advanced template personally me use it under common/config/main.php
  • in basic template i would (never did) put it both to config/web.php and config/console.php (waiting for feedbacks)
'components' => [
    'log' => [
        'class' => '\achertovsky\debug\log\Dispatcher',
        //...
    ],
    //...
]
  1. Use it. /debug/error-hub