0 follower

Final Class Yiisoft\Yii\Debug\Command\DebugResetCommand

InheritanceYiisoft\Yii\Debug\Command\DebugResetCommand » Symfony\Component\Console\Command\Command

Method Details

Hide inherited methods

__construct() public method

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();
}

            
configure() protected method

protected void configure ( )

                protected function configure(): void
{
    $this
        ->setHelp('This command clears debug storage data');
}

            
execute() protected method

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;
}