TestCause example


}

/** * @internal */
#[Package('command')] class TestCommand extends Command
{
    protected function execute(InputInterface $input, OutputInterface $output): int
    {
        $testCause = new TestCause();
        $testCause->throw(new TestException('test'));

        return Command::SUCCESS;
    }
}

/** * @internal */
#[Package('command')] class TestNestedCommand extends Command
{
Home | Imprint | This part of the site doesn't use cookies.