Skip to content

Commit

Permalink
Merge pull request #27612 from laboro/fix/MMS-27_4.1
Browse files Browse the repository at this point in the history
MMS-27: Remove unneeded mailchimp .class parameters from container in…
  • Loading branch information
emishusta authored Apr 27, 2020
2 parents 7580993 + c4e0748 commit b5a7863
Show file tree
Hide file tree
Showing 3 changed files with 185 additions and 337 deletions.
4 changes: 1 addition & 3 deletions Command/MailChimpExportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ protected function getStaticSegmentRepository()
/** @var RegistryInterface $registry */
$registry = $this->container->get('doctrine');

return $registry->getRepository(
$this->container->getParameter('oro_mailchimp.entity.static_segment.class')
);
return $registry->getRepository(StaticSegment::class);
}

/**
Expand Down
8 changes: 4 additions & 4 deletions Resources/config/oro/datagrids.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ datagrids:
properties:
id: ~
oro_mailchimp_templates_grid:
extended_entity_name: '%oro_mailchimp.entity.template.class%'
extended_entity_name: 'Oro\Bundle\MailChimpBundle\Entity\Template'
acl_resource: oro_email_campaign_view
channel_limitation:
channel_relation_path: .channel
Expand All @@ -68,7 +68,7 @@ datagrids:
- t.type
- t.layout
from:
- { table: '%oro_mailchimp.entity.template.class%', alias: t }
- { table: 'Oro\Bundle\MailChimpBundle\Entity\Template', alias: t }
where:
and:
- t.active = true
Expand Down Expand Up @@ -113,7 +113,7 @@ datagrids:
id: ~

oro_mailchimp_lists_grid:
extended_entity_name: '%oro_mailchimp.entity.subscribers_list.class%'
extended_entity_name: 'Oro\Bundle\MailChimpBundle\Entity\SubscribersList'
channel_limitation:
channel_relation_path: .channel
options:
Expand All @@ -127,7 +127,7 @@ datagrids:
- l.createdAt
- l.updatedAt
from:
- { table: '%oro_mailchimp.entity.subscribers_list.class%', alias: l }
- { table: 'Oro\Bundle\MailChimpBundle\Entity\SubscribersList', alias: l }
where:
and:
- l.owner = @oro_security.token_accessor->getOrganizationId
Expand Down
Loading

0 comments on commit b5a7863

Please sign in to comment.