ENHANCEMENT: setting namespaces for commands
This commit is contained in:
parent
3d5863e77a
commit
638c14a24a
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue