Final Class Yiisoft\Yii\Debug\Command\DebugResetCommand
| Inheritance | Yiisoft\Yii\Debug\Command\DebugResetCommand » Symfony\Component\Console\Command\Command |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Yii\Debug\Command\DebugResetCommand |
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| configure() | Yiisoft\Yii\Debug\Command\DebugResetCommand | |
| execute() | Yiisoft\Yii\Debug\Command\DebugResetCommand |
Method Details
| public mixed __construct ( Yiisoft\Yii\Debug\Storage\StorageInterface $storage, Yiisoft\Yii\Debug\Debugger $debugger ) | ||
| $storage | Yiisoft\Yii\Debug\Storage\StorageInterface | |
| $debugger | Yiisoft\Yii\Debug\Debugger | |
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 ( \Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output ) | ||
| $input | \Symfony\Component\Console\Input\InputInterface | |
| $output | \Symfony\Component\Console\Output\OutputInterface | |
protected function execute(InputInterface $input, OutputInterface $output): int
{
$this->debugger->kill();
$this->storage->clear();
return ExitCode::OK;
}
Signup or Login in order to comment.