Skip to content

Releases: webgriffe/SyliusActiveCampaignPlugin

v0.11.0

27 May 10:21
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.10.0...v0.11.0

v0.10.0

20 Sep 14:42
Compare
Choose a tag to compare

Release notes

BC Method Webgriffe\SyliusActiveCampaignPlugin\Model\CustomerActiveCampaignAwareTrait#__construct() was removed

There was a bug due to a __construct method on the trait CustomerActiveCampaignAwareTrait. The constructor of the trait was never called. So that
the channelCustomers property was never initialized, or it was initialized to a null value. Even if it was a null value this was then used in a foreach, and it will trigger a deprecation error.
This bug has been fixed in this release. If you use the trait you can proceed in two ways:

1 - You can import the channelCustomersInitializers method and call it in the constructor of your entity. The result will be like this:

<?php

namespace App\Entity\Customer;

use Doctrine\ORM\Mapping as ORM;
use Sylius\Component\Core\Model\Customer as BaseCustomer;
use Webgriffe\SyliusActiveCampaignPlugin\Model\ActiveCampaignAwareTrait;
use Webgriffe\SyliusActiveCampaignPlugin\Model\CustomerActiveCampaignAwareInterface;
use Webgriffe\SyliusActiveCampaignPlugin\Model\CustomerActiveCampaignAwareTrait;

/**
 * @ORM\Entity
 * @ORM\Table(name="sylius_customer")
 */
class Customer extends BaseCustomer implements CustomerActiveCampaignAwareInterface
{
    use ActiveCampaignAwareTrait;
    use CustomerActiveCampaignAwareTrait {
        CustomerActiveCampaignAwareTrait::channelCustomersInitializers as private __channelCustomersInitializers;
    }

    public function __construct()
    {
        parent::__construct();
        $this->__channelCustomersInitializers();
    }
}

2 - If you prefer you can avoid to import the channelCustomersInitializers method and initialize yourself the
channelCustomers property in the constructor. The result will be like this:

<?php

namespace App\Entity\Customer;

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Sylius\Component\Core\Model\Customer as BaseCustomer;
use Webgriffe\SyliusActiveCampaignPlugin\Model\ActiveCampaignAwareTrait;
use Webgriffe\SyliusActiveCampaignPlugin\Model\CustomerActiveCampaignAwareInterface;
use Webgriffe\SyliusActiveCampaignPlugin\Model\CustomerActiveCampaignAwareTrait;

/**
 * @ORM\Entity
 * @ORM\Table(name="sylius_customer")
 */
class Customer extends BaseCustomer implements CustomerActiveCampaignAwareInterface
{
    use ActiveCampaignAwareTrait;
    use CustomerActiveCampaignAwareTrait;

    public function __construct()
    {
        parent::__construct();
        $this->channelCustomers = new ArrayCollection();
    }
}

What's Changed

  • Remove __construct call from CustomerActiveCampaignAwareTrait by @lruozzi9 in #82

Full Changelog: v0.9.0...v0.10.0

v0.9.0

18 Sep 09:38
c12b667
Compare
Choose a tag to compare

Breaking Changes

  • The webgriffe.sylius_active_campaign_plugin.serializer service has been removed, now we use the default serializer, please see #78 for more details.
  • Now the plugin messages use the webgriffe_sylius_active_campaign_plugin.command_bus messenger bus with some middleware, please see #80 for more details.
  • The webgriffe.sylius_active_campaign_plugin.logger service has been removed. Even the webgriffe_sylius_active_campaign.logger.channel_name parameter. Now we use a channel webgriffe_sylius_active_campaign_plugin on monolog, please see #79 for more details.

What's Changed

Full Changelog: v0.8.0...v0.9.0

v0.8.0

04 Sep 07:43
Compare
Choose a tag to compare

What's Changed

  • Add support for post contact info to webhook on AC automations by @lruozzi9 in #75

Full Changelog: v0.7.0...v0.8.0

v0.7.0

07 Aug 10:48
Compare
Choose a tag to compare

Release notes

Plugin configuration paths are changed! Please see the UPGRADE guide here!

What's Changed

Full Changelog: v0.6.0...v0.7.0

v0.6.0

09 Jun 14:44
Compare
Choose a tag to compare

What's Changed

  • Export contact and ecommerce customer on abandoned carts command

Full Changelog: v0.5.0...v0.6.0

v0.3.2

09 Jun 14:43
Compare
Choose a tag to compare

Full Changelog: v0.3.1...v0.3.2

v0.5.0

05 Jun 10:42
Compare
Choose a tag to compare

What's Changed

  • Do not change main request context by @lruozzi9 in #66
  • Export contact and ecommerce customer on order events by @lruozzi9 in #68

Full Changelog: v0.4.0...v0.5.0

v0.3.1

05 Jun 10:54
Compare
Choose a tag to compare

Full Changelog: v0.3.0...v0.3.1

v0.4.0 - Sylius 1.12, Symfony 6 and PHP 8.1 support

17 Apr 10:52
Compare
Choose a tag to compare

What's Changed

  • Support Sylius 1.12, Symfony 6, and PHP 8.1 by @lruozzi9 in #62

Full Changelog: v0.3.0...v0.4.0