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
|
class CleanupCommand extends Command
|
||||||
{
|
{
|
||||||
protected static $defaultName = 'cleanup';
|
protected static $defaultName = 'webcron:cleanup';
|
||||||
protected $kernel;
|
protected $kernel;
|
||||||
protected $doctrine;
|
protected $doctrine;
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\HttpKernel\KernelInterface;
|
||||||
class DaemonCommand extends Command
|
class DaemonCommand extends Command
|
||||||
{
|
{
|
||||||
|
|
||||||
protected static $defaultName = 'daemon';
|
protected static $defaultName = 'webcron:daemon';
|
||||||
protected $kernel;
|
protected $kernel;
|
||||||
protected $doctrine;
|
protected $doctrine;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
|
||||||
|
|
||||||
class DemoInstallCommand extends Command
|
class DemoInstallCommand extends Command
|
||||||
{
|
{
|
||||||
protected static $defaultName = 'install:demodata';
|
protected static $defaultName = 'webcron:demodata';
|
||||||
protected $kernel;
|
protected $kernel;
|
||||||
protected $doctrine;
|
protected $doctrine;
|
||||||
protected $passwordHasher;
|
protected $passwordHasher;
|
||||||
|
@ -33,8 +33,8 @@ class DemoInstallCommand extends Command
|
||||||
protected function configure()
|
protected function configure()
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setDescription('Run a single cronjob')
|
->setDescription('Install demo data')
|
||||||
->setHelp('This command runs a single command');
|
->setHelp('This command installs the demo data');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function execute(InputInterface $input, OutputInterface $output)
|
protected function execute(InputInterface $input, OutputInterface $output)
|
||||||
|
|
|
@ -20,7 +20,7 @@ use Twig\Environment;
|
||||||
|
|
||||||
class MailFailedRunsCommand extends Command
|
class MailFailedRunsCommand extends Command
|
||||||
{
|
{
|
||||||
protected static $defaultName = 'mail-failed-runs';
|
protected static $defaultName = 'webcron:mail-failed-runs';
|
||||||
protected $kernel;
|
protected $kernel;
|
||||||
protected $doctrine;
|
protected $doctrine;
|
||||||
protected $templating;
|
protected $templating;
|
||||||
|
|
|
@ -12,7 +12,7 @@ use Symfony\Component\HttpKernel\KernelInterface;
|
||||||
|
|
||||||
class RunCommand extends Command
|
class RunCommand extends Command
|
||||||
{
|
{
|
||||||
protected static $defaultName = 'run';
|
protected static $defaultName = 'webcron:run';
|
||||||
protected $kernel;
|
protected $kernel;
|
||||||
protected $doctrine;
|
protected $doctrine;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue