ENHANCEMENT: setting namespaces for commands

This commit is contained in:
Jeroen De Meerleer 2022-08-31 17:47:20 +02:00
parent 3d5863e77a
commit 638c14a24a
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
5 changed files with 7 additions and 7 deletions

View File

@ -16,7 +16,7 @@ use Symfony\Component\HttpKernel\KernelInterface;
class CleanupCommand extends Command
{
protected static $defaultName = 'cleanup';
protected static $defaultName = 'webcron:cleanup';
protected $kernel;
protected $doctrine;

View File

@ -16,7 +16,7 @@ use Symfony\Component\HttpKernel\KernelInterface;
class DaemonCommand extends Command
{
protected static $defaultName = 'daemon';
protected static $defaultName = 'webcron:daemon';
protected $kernel;
protected $doctrine;

View File

@ -17,7 +17,7 @@ use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
class DemoInstallCommand extends Command
{
protected static $defaultName = 'install:demodata';
protected static $defaultName = 'webcron:demodata';
protected $kernel;
protected $doctrine;
protected $passwordHasher;
@ -33,8 +33,8 @@ class DemoInstallCommand extends Command
protected function configure()
{
$this
->setDescription('Run a single cronjob')
->setHelp('This command runs a single command');
->setDescription('Install demo data')
->setHelp('This command installs the demo data');
}
protected function execute(InputInterface $input, OutputInterface $output)

View File

@ -20,7 +20,7 @@ use Twig\Environment;
class MailFailedRunsCommand extends Command
{
protected static $defaultName = 'mail-failed-runs';
protected static $defaultName = 'webcron:mail-failed-runs';
protected $kernel;
protected $doctrine;
protected $templating;

View File

@ -12,7 +12,7 @@ use Symfony\Component\HttpKernel\KernelInterface;
class RunCommand extends Command
{
protected static $defaultName = 'run';
protected static $defaultName = 'webcron:run';
protected $kernel;
protected $doctrine;