Observer/ProcessProductAfterDeleteEventObserver.php [20:58]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected $fbeHelper;
    /**
     * @var BatchApi
     */
    protected $batchApi;
    /**
     * @var SystemConfig
     */
    protected $systemConfig;

    /**
     * Constructor
     * @param FBEHelper $helper
     * @param BatchApi $batchApi
     * @param SystemConfig $systemConfig
     */
    public function __construct(
        FBEHelper $helper,
        BatchApi $batchApi,
        SystemConfig $systemConfig
    ) {
        $this->fbeHelper = $helper;
        $this->batchApi = $batchApi;
        $this->systemConfig = $systemConfig;
    }

    /**
     * Call an API to product delete from facebook catalog
     * after delete product from Magento
     *
     * @param Observer $observer
     */
    public function execute(Observer $observer)
    {
        if ($this->systemConfig->isActiveCatalogSync() == false) {
            return;
        }

        $product = $observer->getEvent()->getProduct();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



Observer/ProcessProductAfterSaveEventObserver.php [21:61]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected $fbeHelper;

    /**
     * @var BatchApi
     */
    protected $batchApi;

    /**
     * @var SystemConfig
     */
    protected $systemConfig;

    /**
     * Constructor
     * @param FBEHelper $helper
     * @param BatchApi $batchApi
     * @param SystemConfig $systemConfig
     */
    public function __construct(
        FBEHelper $helper,
        BatchApi $batchApi,
        SystemConfig $systemConfig
    ) {
        $this->fbeHelper = $helper;
        $this->batchApi = $batchApi;
        $this->systemConfig = $systemConfig;
    }

    /**
     * Call an API to product save from facebook catalog
     * after save product from Magento
     *
     * @param Observer $observer
     */
    public function execute(Observer $observer)
    {
        if ($this->systemConfig->isActiveCatalogSync() == false) {
            return;
        }
        /** @var Product $product */
        $product = $observer->getEvent()->getProduct();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



