mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 02:53:50 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -25,22 +25,12 @@ use function ctype_digit;
|
||||
|
||||
final class ChillPersonMoveCommand extends Command
|
||||
{
|
||||
private LoggerInterface $chillLogger;
|
||||
|
||||
private EntityManagerInterface $em;
|
||||
|
||||
private PersonMove $mover;
|
||||
|
||||
public function __construct(
|
||||
PersonMove $mover,
|
||||
EntityManagerInterface $em,
|
||||
LoggerInterface $chillLogger
|
||||
private PersonMove $mover,
|
||||
private EntityManagerInterface $em,
|
||||
private LoggerInterface $chillLogger
|
||||
) {
|
||||
parent::__construct('chill:person:move');
|
||||
|
||||
$this->mover = $mover;
|
||||
$this->em = $em;
|
||||
$this->chillLogger = $chillLogger;
|
||||
}
|
||||
|
||||
protected function buildLoggingContext(Person $from, Person $to, $deleteEntities, $sqls)
|
||||
|
@@ -27,17 +27,10 @@ final class ImportSocialWorkMetadata extends Command
|
||||
{
|
||||
protected EntityManagerInterface $em;
|
||||
|
||||
/**
|
||||
* @var LoggerInterface
|
||||
*/
|
||||
protected ChillImporter $importer;
|
||||
|
||||
public function __construct(
|
||||
SocialWorkMetadataInterface $socialWorkMetadata
|
||||
protected SocialWorkMetadataInterface $importer
|
||||
) {
|
||||
parent::__construct('chill:person:import-socialwork');
|
||||
|
||||
$this->importer = $socialWorkMetadata;
|
||||
}
|
||||
|
||||
protected function configure()
|
||||
|
@@ -22,16 +22,9 @@ use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
class RemoveOldDraftAccompanyingPeriodCommand extends Command
|
||||
{
|
||||
private LoggerInterface $logger;
|
||||
|
||||
private OldDraftAccompanyingPeriodRemoverInterface $remover;
|
||||
|
||||
public function __construct(LoggerInterface $logger, OldDraftAccompanyingPeriodRemoverInterface $remover)
|
||||
public function __construct(private LoggerInterface $logger, private OldDraftAccompanyingPeriodRemoverInterface $remover)
|
||||
{
|
||||
parent::__construct('chill:person:remove-old-draft-period');
|
||||
|
||||
$this->logger = $logger;
|
||||
$this->remover = $remover;
|
||||
}
|
||||
|
||||
protected function configure(): void
|
||||
|
Reference in New Issue
Block a user