?? GreyFile — Mystic File Browser

Current path: home/webdevt/www/schtroumpf.fr/modules/ps_eventbus/controllers/front/



?? Go up: /home/webdevt/www/schtroumpf.fr/modules/ps_eventbus/controllers

?? Viewing: apiCustomers.php

<?php

use PrestaShop\Module\PsEventbus\Config\Config;
use PrestaShop\Module\PsEventbus\Controller\AbstractApiController;
use PrestaShop\Module\PsEventbus\Provider\CustomerDataProvider;

class ps_EventbusApiCustomersModuleFrontController extends AbstractApiController
{
    public $type = Config::COLLECTION_CUSTOMERS;

    /**
     * @return void
     *
     * @throws PrestaShopException
     */
    public function postProcess()
    {
        /** @var CustomerDataProvider $customerDataProvider */
        $customerDataProvider = $this->module->getService(CustomerDataProvider::class);

        $response = $this->handleDataSync($customerDataProvider);

        $this->exitWithResponse($response);
    }
}


??

??