Files
2025-06-24 14:14:35 +02:00

26 lines
709 B
PHP

<?php
use PrestaShop\Module\PsEventbus\Config\Config;
use PrestaShop\Module\PsEventbus\Controller\AbstractApiController;
use PrestaShop\Module\PsEventbus\Provider\WishlistDataProvider;
class ps_EventbusApiWishlistsModuleFrontController extends AbstractApiController
{
public $type = Config::COLLECTION_WISHLISTS;
/**
* @return void
*
* @throws\PrestaShopException
*/
public function postProcess()
{
/** @var WishlistDataProvider $wishlistDataProvider */
$wishlistDataProvider = $this->module->getService(WishlistDataProvider::class);
$response = $this->handleDataSync($wishlistDataProvider);
$this->exitWithResponse($response);
}
}