Final Class Yiisoft\Yii\Debug\Command\DebugResetCommand
| Inheritance | Yiisoft\ |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| configure() | Yiisoft\ |
|
| execute() | Yiisoft\ |
Method Details
| public mixed __construct ( Yiisoft\ | ||
| $storage | Yiisoft\ |
|
| $debugger | Yiisoft\ |
|
public function __construct(
private readonly StorageInterface $storage,
private readonly Debugger $debugger,
) {
parent::__construct();
}
| protected void configure ( ) |
protected function configure(): void
{
$this
->setHelp('This command clears debug storage data');
}
| protected integer execute ( \ | ||
| $input | \ |
|
| $output | \ |
|
protected function execute(InputInterface $input, OutputInterface $output): int
{
$this->debugger->kill();
$this->storage->clear();
return ExitCode::OK;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.