chrisbryan17's picture
Upload folder using huggingface_hub
d2897cd verified
<?php
namespace Mautic\CampaignBundle\Command;
use Mautic\CampaignBundle\Executioner\Result\Counter;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
trait WriteCountTrait
{
private function writeCounts(OutputInterface $output, TranslatorInterface $translator, Counter $counter): void
{
$output->writeln('');
$output->writeln(
'<comment>'.$translator->trans(
'mautic.campaign.trigger.events_executed',
['%count%' => $counter->getTotalExecuted()]
)
.'</comment>'
);
$output->writeln(
'<comment>'.$translator->trans(
'mautic.campaign.trigger.events_scheduled',
['%count%' => $counter->getTotalScheduled()]
)
.'</comment>'
);
$output->writeln('');
}
}