Skip to content

Commit

Permalink
fix: deprecation in StartSchedulerCommand (#96)
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Georg <[email protected]>
  • Loading branch information
Chris53897 and Chris8934 authored Jan 13, 2024
1 parent a73bea9 commit af749f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Command/StartSchedulerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Dukecity\CommandSchedulerBundle\Command;

use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Dukecity\CommandSchedulerBundle\Entity\ScheduledCommand;
use Symfony\Bridge\Doctrine\ManagerRegistry;
use Symfony\Component\Console\Attribute\AsCommand;
Expand All @@ -24,6 +26,8 @@ class StartSchedulerCommand extends Command
{
const PID_FILE = '.cron-pid';

private EntityManagerInterface $em;

public function __construct(
ManagerRegistry $managerRegistry,
string $managerName,
Expand Down

0 comments on commit af749f2

Please sign in to comment.