$helper */ public function __construct( private EntityManager $entityManager, private CollectionHelper $helper ) {} public function prepare(Data $data, DateTimeImmutable $executeTime): void { $collection = $this->entityManager ->getRDBRepositoryByClass(InboundEmail::class) ->where([ 'status' => InboundEmail::STATUS_ACTIVE, 'useImap' => true, ]) ->find(); $this->helper->prepare($collection, $data, $executeTime); } }