fixed customer registration bug due to last fix

This commit is contained in:
Prashant Singh 2019-05-10 11:34:47 +05:30
parent 8829522be6
commit adbc5c9999
1 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,7 @@ use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Mail;
use Webkul\Customer\Mail\VerificationEmail;
use Illuminate\Routing\Controller;
use Webkul\Customer\Repositories\CustomerRepository as Customer;
use Webkul\Customer\Repositories\CustomerGroupRepository as CustomerGroup;
use Cookie;
@ -25,14 +26,16 @@ class RegistrationController extends Controller
* @return \Illuminate\Http\Response
*/
protected $_config;
protected $customer;
protected $customerGroup;
/**
* @param CustomerRepository object $customer
*/
public function __construct(CustomerGroup $customerGroup)
public function __construct(CustomerGroup $customerGroup, Customer $customer)
{
$this->_config = request('_config');
$this->customer = $customer;
$this->customerGroup = $customerGroup;
}