Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Classes/Command/CreateWizardCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@

namespace T3docs\Examples\Command;

use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use T3docs\Examples\Exception\InvalidWizardException;
use TYPO3\CMS\Core\Attribute\AsNonSchedulableCommand;

#[AsCommand('examples:createwizard', 'A command that creates a wizard. It is hidden in the command list. You cannot use it in the scheduler.')]
#[AsNonSchedulableCommand]
final class CreateWizardCommand extends Command
{
protected function configure(): void
Expand Down
2 changes: 2 additions & 0 deletions Classes/Command/DoSomethingCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@

namespace T3docs\Examples\Command;

use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

#[AsCommand('examples:dosomething', 'A command that does nothing and always succeeds.')]
final class DoSomethingCommand extends Command
{
protected function configure(): void
Expand Down
14 changes: 0 additions & 14 deletions Configuration/Services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,6 @@ services:
tags:
- name: linkvalidator.linktype

T3docs\Examples\Command\DoSomethingCommand:
tags:
- name: console.command
command: 'examples:dosomething'
description: 'A command that does nothing and always succeeds.'

T3docs\Examples\Command\CreateWizardCommand:
tags:
- name: console.command
command: 'examples:createwizard'
description: 'A command that creates a wizard. It is hidden in the command list. You cannot use it in the scheduler.'
hidden: true
schedulable: false

T3docs\Examples\Controller\Haiku\DetailController:
public: true

Expand Down