| @@ 61-81 (lines=21) @@ | ||
| 58 | * @param ImprovedSpecRepository $improvedSpecRepository |
|
| 59 | * @param Guard $auth |
|
| 60 | */ |
|
| 61 | public function __construct( |
|
| 62 | LotRepository $lotRepository, |
|
| 63 | ProductsRepository $productsRepository, |
|
| 64 | ImprovedSpecRepository $improvedSpecRepository, |
|
| 65 | SpecPriceRepository $specPriceRepository, |
|
| 66 | SubCategoriesRepository $subCategoriesRepository, |
|
| 67 | MethodDeliveryPaymentRepository $methodDeliveryPaymentRepository, |
|
| 68 | LotDeliveryPaymentRepository $lotDeliveryPaymentRepository, |
|
| 69 | CurrenciesRepository $currenciesRepository, |
|
| 70 | Guard $auth |
|
| 71 | ) { |
|
| 72 | $this->lots = $lotRepository; |
|
| 73 | $this->auth = $auth; |
|
| 74 | $this->products = $productsRepository; |
|
| 75 | $this->improvedSpecs = $improvedSpecRepository; |
|
| 76 | $this->specPrice = $specPriceRepository; |
|
| 77 | $this->sub_category = $subCategoriesRepository; |
|
| 78 | $this->method = $methodDeliveryPaymentRepository; |
|
| 79 | $this->lot_method = $lotDeliveryPaymentRepository; |
|
| 80 | $this->currencies = $currenciesRepository; |
|
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * Create lot or modify drafted for vendor. |
|
| @@ 77-99 (lines=23) @@ | ||
| 74 | * @param LotRepository $lotRepository |
|
| 75 | * @param ImprovedSpecRepository $improvedSpecRepository |
|
| 76 | */ |
|
| 77 | public function __construct( |
|
| 78 | Store $session, |
|
| 79 | ProductsRepository $productsRepository, |
|
| 80 | CategoryableRepository $categoryableRepository, |
|
| 81 | ModelColorsRepository $modelColorsRepository, |
|
| 82 | InvolvedRepository $involvedRepository, |
|
| 83 | LotRepository $lotRepository, |
|
| 84 | ImprovedSpecRepository $improvedSpecRepository, |
|
| 85 | SpecPriceRepository $specPriceRepository, |
|
| 86 | CurrenciesRepository $currenciesRepository |
|
| 87 | ) |
|
| 88 | { |
|
| 89 | $this->session = $session; |
|
| 90 | $this->products = $productsRepository; |
|
| 91 | $this->categoryable = $categoryableRepository; |
|
| 92 | $this->modelColors = $modelColorsRepository; |
|
| 93 | $this->involved = $involvedRepository; |
|
| 94 | $this->lots = $lotRepository; |
|
| 95 | $this->improvedSpecs = $improvedSpecRepository; |
|
| 96 | $this->specPrice = $specPriceRepository; |
|
| 97 | $this->currencies = $currenciesRepository; |
|
| 98 | ||
| 99 | } |
|
| 100 | ||
| 101 | /** |
|
| 102 | * @param SaveProductRequest $request |
|