Skip to content

Commit

Permalink
Update files for Oro 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GautierDig committed Jan 29, 2024
1 parent 24f19d8 commit d0d5765
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Command/SendSmsCampaignsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Diglin\Bundle\SmsCampaignBundle\Entity\SmsCampaign;
use Diglin\Bundle\SmsCampaignBundle\Model\SmsCampaignSenderBuilder;
use Doctrine\Persistence\ManagerRegistry;
use Oro\Bundle\CronBundle\Command\CronCommandInterface;
use Oro\Bundle\CronBundle\Command\CronCommandScheduleDefinitionInterface;
use Oro\Bundle\FeatureToggleBundle\Checker\FeatureChecker;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
Expand All @@ -22,7 +22,7 @@
/**
* Command to send scheduled SMS campaigns
*/
class SendSmsCampaignsCommand extends Command implements CronCommandInterface
class SendSmsCampaignsCommand extends Command implements CronCommandScheduleDefinitionInterface
{
/** @var string */
protected static $defaultName = 'oro:cron:send-sms-campaigns';
Expand Down
6 changes: 5 additions & 1 deletion Entity/SmsCampaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
use Oro\Bundle\CampaignBundle\Entity\TransportSettings;
use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\Config;
use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;
use Oro\Bundle\EntityExtendBundle\Entity\ExtendEntityInterface;
use Oro\Bundle\EntityExtendBundle\Entity\ExtendEntityTrait;
use Oro\Bundle\MarketingListBundle\Entity\MarketingList;
use Oro\Bundle\OrganizationBundle\Entity\Organization;
use Oro\Bundle\UserBundle\Entity\User;
Expand Down Expand Up @@ -52,8 +54,10 @@
* }
* )
*/
class SmsCampaign extends ExtendSmsCampaign
class SmsCampaign extends ExtendSmsCampaign implements ExtendEntityInterface
{
use ExtendEntityTrait;

const SCHEDULE_MANUAL = 'manual';
const SCHEDULE_DEFERRED = 'deferred';

Expand Down
6 changes: 5 additions & 1 deletion Entity/SmsCampaignStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
use Diglin\Bundle\SmsCampaignBundle\Model\ExtendSmsCampaignStatistics;
use Doctrine\ORM\Mapping as ORM;
use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\Config;
use Oro\Bundle\EntityExtendBundle\Entity\ExtendEntityInterface;
use Oro\Bundle\EntityExtendBundle\Entity\ExtendEntityTrait;
use Oro\Bundle\MarketingListBundle\Entity\MarketingListItem;
use Oro\Bundle\OrganizationBundle\Entity\Organization;
use Oro\Bundle\UserBundle\Entity\User;
Expand Down Expand Up @@ -45,8 +47,10 @@
* )
* @ORM\HasLifecycleCallbacks
*/
class SmsCampaignStatistics extends ExtendSmsCampaignStatistics
class SmsCampaignStatistics extends ExtendSmsCampaignStatistics implements ExtendEntityInterface
{
use ExtendEntityTrait;

/**
* @var int
*
Expand Down

0 comments on commit d0d5765

Please sign in to comment.