private function disableVendor($vendorData)
    {

        $vendor = $this->vendorManager->findByMiraklId($vendorData['shop_id']);
        $logVendor = $this->logVendorManager->findByMiraklId($vendorData['shop_id']);

        if ($vendor) {
            $this->logger->info(
                'Shop ' . $vendorData['shop_id'] . ' found in database',
                array('miraklId' => $vendorData['shop_id'], "action" => "Wallet creation")
            );
            if ($vendor->getEnabled() || $vendor->getEnabled() === null) {
                $vendor->setEnabled(false);
                $this->vendorManager->save($vendor);
                if ($logVendor !== null) {
                    $logVendor->setEnabled(false);
                    $this->logVendorManager->save($logVendor);
                }
                $this->logger->info(
                    'Shop ' . $vendorData['shop_id'] . ' disabled',
                    array('miraklId' => $vendorData['shop_id'], "action" => "Wallet creation")
                );
            } else {
                $this->logger->info(
                    'Shop ' . $vendorData['shop_id'] . ' already disabled',
                    array('miraklId' => $vendorData['shop_id'], "action" => "Wallet creation")
                );
            }
        }
    }
private function disableVendor($vendorData)
    {

        $vendor = $this->vendorManager->findByMiraklId($vendorData['shop_id']);
        $logVendor = $this->logVendorManager->findByMiraklId($vendorData['shop_id']);

        if ($vendor) {
            $this->logger->info(
                'Shop ' . $vendorData['shop_id'] . ' found in database',
                array('miraklId' => $vendorData['shop_id'], "action" => "Wallet creation")
            );
            if ($vendor->getEnabled() || $vendor->getEnabled() === null) {
                $vendor->setEnabled(false);
                $this->vendorManager->save($vendor);
                if ($logVendor !== null) {
                    $logVendor->setEnabled(false);
                    $this->logVendorManager->save($logVendor);
                }
                $this->logger->info(
                    'Shop ' . $vendorData['shop_id'] . ' disabled',
                    array('miraklId' => $vendorData['shop_id'], "action" => "Wallet creation")
                );
            } else {
                $this->logger->info(
                    'Shop ' . $vendorData['shop_id'] . ' already disabled',
                    array('miraklId' => $vendorData['shop_id'], "action" => "Wallet creation")
                );
            }
        }
    }
private function disableVendor ( $ vendorData ) { $ vendor = $ this -> vendorManager -> findByMiraklId ( $ vendorData [ 'shop_id' ] ) ; $ logVendor = $ this -> logVendorManager -> findByMiraklId ( $ vendorData [ 'shop_id' ] ) ; if ( $ vendor ) { $ this -> logger -> info ( 'Shop ' . $ vendorData [ 'shop_id' ] . ' found in database' , array ( 'miraklId' => $ vendorData [ 'shop_id' ] , "action" => "Wallet creation" ) ) ; if ( $ vendor -> getEnabled ( ) || $ vendor -> getEnabled ( ) === null ) { $ vendor -> setEnabled ( false ) ; $ this -> vendorManager -> save ( $ vendor ) ; if ( $ logVendor !== null ) { $ logVendor -> setEnabled ( false ) ; $ this -> logVendorManager -> save ( $ logVendor ) ; } $ this -> logger -> info ( 'Shop ' . $ vendorData [ 'shop_id' ] . ' disabled' , array ( 'miraklId' => $ vendorData [ 'shop_id' ] , "action" => "Wallet creation" ) ) ; } else { $ this -> logger -> info ( 'Shop ' . $ vendorData [ 'shop_id' ] . ' already disabled' , array ( 'miraklId' => $ vendorData [ 'shop_id' ] , "action" => "Wallet creation" ) ) ; } } }
If Vendor exist and HIPAY_PROCESS = NO, disable it

@param $vendorData
If Vendor exist and HIPAY_PROCESS = NO disable it