Remove defaultDescription from commands, as this is now part of the annotation

This commit is contained in:
Jan Böhmer 2023-05-28 01:32:04 +02:00
parent 21fc554589
commit bb1285c35c
11 changed files with 0 additions and 21 deletions

View file

@ -33,8 +33,6 @@ use Symfony\Component\Console\Style\SymfonyStyle;
#[\Symfony\Component\Console\Attribute\AsCommand('partdb:user:convert-to-saml-user|partdb:users:convert-to-saml-user', 'Converts a local user to a SAML user (and vice versa)')]
class ConvertToSAMLUserCommand extends Command
{
protected static $defaultDescription = 'Converts a local user to a SAML user (and vice versa)';
protected EntityManagerInterface $entityManager;
protected bool $saml_enabled;

View file

@ -37,8 +37,6 @@ use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
#[\Symfony\Component\Console\Attribute\AsCommand('partdb:users:set-password|app:set-password|users:set-password|partdb:user:set-password', 'Sets the password of a user')]
class SetPasswordCommand extends Command
{
protected static $defaultDescription = 'Sets the password of a user';
protected EntityManagerInterface $entityManager;
protected UserPasswordHasherInterface $encoder;
protected EventDispatcherInterface $eventDispatcher;

View file

@ -32,8 +32,6 @@ use Symfony\Component\Console\Style\SymfonyStyle;
#[\Symfony\Component\Console\Attribute\AsCommand('partdb:users:enable|partdb:user:enable', 'Enables/Disable the login of one or more users')]
class UserEnableCommand extends Command
{
protected static $defaultDescription = 'Enables/Disable the login of one or more users';
protected EntityManagerInterface $entityManager;
public function __construct(EntityManagerInterface $entityManager, string $name = null)

View file

@ -31,8 +31,6 @@ use Symfony\Component\Console\Style\SymfonyStyle;
#[\Symfony\Component\Console\Attribute\AsCommand('partdb:users:list|users:list', 'Lists all users')]
class UserListCommand extends Command
{
protected static $defaultDescription = 'Lists all users';
protected EntityManagerInterface $entityManager;
public function __construct(EntityManagerInterface $entityManager)