Search.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Catalog\Model\Layer;
  8. use Magento\Catalog\Api\CategoryRepositoryInterface;
  9. use Magento\Catalog\Model\Layer;
  10. use Magento\Catalog\Model\ResourceModel;
  11. use Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory as AttributeCollectionFactory;
  12. class Search extends \Magento\Catalog\Model\Layer
  13. {
  14. /**
  15. * @param ContextInterface $context
  16. * @param StateFactory $layerStateFactory
  17. * @param AttributeCollectionFactory $attributeCollectionFactory
  18. * @param \Magento\Catalog\Model\ResourceModel\Product $catalogProduct
  19. * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  20. * @param \Magento\Framework\Registry $registry
  21. * @param CategoryRepositoryInterface $categoryRepository
  22. * @param array $data
  23. */
  24. public function __construct(
  25. ContextInterface $context,
  26. StateFactory $layerStateFactory,
  27. AttributeCollectionFactory $attributeCollectionFactory,
  28. \Magento\Catalog\Model\ResourceModel\Product $catalogProduct,
  29. \Magento\Store\Model\StoreManagerInterface $storeManager,
  30. \Magento\Framework\Registry $registry,
  31. CategoryRepositoryInterface $categoryRepository,
  32. array $data = []
  33. ) {
  34. parent::__construct(
  35. $context,
  36. $layerStateFactory,
  37. $attributeCollectionFactory,
  38. $catalogProduct,
  39. $storeManager,
  40. $registry,
  41. $categoryRepository,
  42. $data
  43. );
  44. }
  45. }