Add customer repository to address controller
This commit is contained in:
parent
3a1b75d9d7
commit
a8025f1b06
|
|
@ -8,11 +8,32 @@ use Sarga\API\Http\Requests\AddressRequest;
|
|||
use Sarga\API\Http\Requests\RecipientRequest;
|
||||
use Sarga\API\Http\Resources\Customer\AddressResource;
|
||||
use Sarga\API\Http\Resources\Customer\RecipientResource;
|
||||
use Webkul\Customer\Repositories\CustomerAddressRepository;
|
||||
use Webkul\Customer\Repositories\CustomerRepository;
|
||||
use Webkul\RestApi\Http\Controllers\V1\Shop\Customer\AddressController;
|
||||
|
||||
|
||||
class Addresses extends AddressController
|
||||
{
|
||||
/**
|
||||
* CustomerAddressRepository object
|
||||
*
|
||||
* @var \Webkul\Customer\Repositories\CustomerAddressRepository
|
||||
*/
|
||||
protected $customerAddressRepository;
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @param \Webkul\Customer\Repositories\CustomerRepository $customerRepository
|
||||
* @param \Webkul\Customer\Repositories\CustomerAddressRepository $customerAddressRepository
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(
|
||||
CustomerAddressRepository $customerAddressRepository
|
||||
) {
|
||||
$this->customerAddressRepository = $customerAddressRepository;
|
||||
}
|
||||
/**
|
||||
* Get customer addresses.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue