fix mix
This commit is contained in:
parent
060b601c72
commit
4ad611dce3
|
|
@ -11,16 +11,9 @@ use Sarga\Shop\Repositories\CategoryRepository;
|
|||
|
||||
class Categories extends Controller
|
||||
{
|
||||
/**
|
||||
* CategoryRepository object
|
||||
*
|
||||
* @var \Sarga\Shop\Repositories\CategoryRepository
|
||||
*/
|
||||
protected $categoryRepository;
|
||||
|
||||
public function __construct(CategoryRepository $categoryRepository)
|
||||
public function __construct(protected CategoryRepository $categoryRepository)
|
||||
{
|
||||
$this->categoryRepository = $categoryRepository;
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ class Channels extends Controller
|
|||
|
||||
public function __construct(protected ChannelRepository $channelRepository)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function index()
|
||||
|
|
|
|||
|
|
@ -16,11 +16,9 @@ use Webkul\Product\Repositories\ProductFlatRepository;
|
|||
class Vendors extends Controller
|
||||
{
|
||||
|
||||
public function __construct(VendorRepository $sellerRepository,
|
||||
CategoryRepository $categoryRepository)
|
||||
public function __construct(protected VendorRepository $vendorRepository,
|
||||
protected CategoryRepository $categoryRepository)
|
||||
{
|
||||
$this->vendorRepository = $sellerRepository;
|
||||
$this->categoryRepository = $categoryRepository;
|
||||
}
|
||||
|
||||
public function index()
|
||||
|
|
|
|||
Loading…
Reference in New Issue