for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* TechDivision\Import\Customer\Address\Observers\DefaultBillingAddressImportObserver
*
* PHP version 7
* @author Vadim Justus <[email protected]>
* @author Harald Deiser <[email protected]>
* @author Tim Wagner <[email protected]>
* @copyright 2019 TechDivision GmbH <[email protected]>
* @license https://opensource.org/licenses/MIT
* @link https://github.com/techdivision/import-customer-address
* @link http://www.techdivision.com
*/
namespace TechDivision\Import\Customer\Address\Observers;
use TechDivision\Import\Customer\Address\Utils\ColumnKeys;
* Updates the default billing address in the customer entity AFTER the address has been imported.
class DefaultBillingAddressImportObserver extends AbstractDefaultAddressImportObserver
{
* Process the observer's business logic.
* @return void
protected function process()
$this->saveDefaultAddressByType(ColumnKeys::ADDRESS_DEFAULT_BILLING, 'customer_entity_default_billingaddress');
}