Skip to content

Commit

Permalink
VirtualTypes cannot be proxied + fix missing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Aug 4, 2024
1 parent 3b7dec5 commit 4241fbd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
1 change: 0 additions & 1 deletion Observer/DeleteExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public function __construct(
public function execute(Observer $observer): void
{
$entity = $observer->getData('data_object');

if ($entity instanceof DataObject) {
try {
foreach ($this->fetchExportEntities($entity)->getItems() as $exportEntity) {
Expand Down
1 change: 1 addition & 0 deletions Observer/InvalidateExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function __construct(

public function execute(Observer $observer): void
{
$entity = $observer->getData('data_object');
if ($entity instanceof DataObject) {
try {
foreach ($this->fetchExportEntities($entity)->getItems() as $exportEntity) {
Expand Down
20 changes: 10 additions & 10 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1540,16 +1540,16 @@
<arguments>
<argument name="notifiers" xsi:type="array">
<item name="pending" xsi:type="array">
<item name="customer" xsi:type="object">Opengento\Gdpr\Model\Customer\Erase\Notifier\Pending\Proxy</item>
<item name="order" xsi:type="object">Opengento\Gdpr\Model\Order\Erase\Notifier\Pending\Proxy</item>
<item name="customer" xsi:type="object">Opengento\Gdpr\Model\Customer\Erase\Notifier\Pending</item>
<item name="order" xsi:type="object">Opengento\Gdpr\Model\Order\Erase\Notifier\Pending</item>
</item>
<item name="success" xsi:type="array">
<item name="customer" xsi:type="object">Opengento\Gdpr\Model\Customer\Erase\Notifier\Succeeded\Proxy</item>
<item name="order" xsi:type="object">Opengento\Gdpr\Model\Order\Erase\Notifier\Succeeded\Proxy</item>
<item name="customer" xsi:type="object">Opengento\Gdpr\Model\Customer\Erase\Notifier\Succeeded</item>
<item name="order" xsi:type="object">Opengento\Gdpr\Model\Order\Erase\Notifier\Succeeded</item>
</item>
<item name="cancel" xsi:type="array">
<item name="customer" xsi:type="object">Opengento\Gdpr\Model\Customer\Erase\Notifier\Canceled\Proxy</item>
<item name="order" xsi:type="object">Opengento\Gdpr\Model\Order\Erase\Notifier\Canceled\Proxy</item>
<item name="customer" xsi:type="object">Opengento\Gdpr\Model\Customer\Erase\Notifier\Canceled</item>
<item name="order" xsi:type="object">Opengento\Gdpr\Model\Order\Erase\Notifier\Canceled</item>
</item>
</argument>
</arguments>
Expand Down Expand Up @@ -1633,12 +1633,12 @@
<arguments>
<argument name="notifiers" xsi:type="array">
<item name="pending" xsi:type="array">
<item name="customer" xsi:type="object">Opengento\Gdpr\Model\Customer\Export\Notifier\Pending\Proxy</item>
<item name="order" xsi:type="object">Opengento\Gdpr\Model\Order\Export\Notifier\Pending\Proxy</item>
<item name="customer" xsi:type="object">Opengento\Gdpr\Model\Customer\Export\Notifier\Pending</item>
<item name="order" xsi:type="object">Opengento\Gdpr\Model\Order\Export\Notifier\Pending</item>
</item>
<item name="ready" xsi:type="array">
<item name="customer" xsi:type="object">Opengento\Gdpr\Model\Customer\Export\Notifier\Ready\Proxy</item>
<item name="order" xsi:type="object">Opengento\Gdpr\Model\Order\Export\Notifier\Ready\Proxy</item>
<item name="customer" xsi:type="object">Opengento\Gdpr\Model\Customer\Export\Notifier\Ready</item>
<item name="order" xsi:type="object">Opengento\Gdpr\Model\Order\Export\Notifier\Ready</item>
</item>
</argument>
</arguments>
Expand Down

0 comments on commit 4241fbd

Please sign in to comment.