public SmartSearchController(IProductService productService,
                                     ICategoryService categoryService,
                                     IRepository <Order> orderRepository,
                                     IPictureService pictureService,
                                     SmartSearchSettings smartSearchSettings,
                                     ISettingService settingService,
                                     ILogger logger,
                                     ICacheManager cacheManager,
                                     ILocalizationService localizationService,
                                     MediaSettings mediaSettings,
                                     IWorkContext workContext,
                                     IStoreContext storeContext,
                                     IWebHelper webHelper,
                                     CatalogSettings catalogSettings,
                                     IPermissionService permissionService,
                                     IPriceFormatter priceFormatter)
        {
            _workContext         = workContext;
            _localizationService = localizationService;
            _priceFormatter      = priceFormatter;
            _catalogSettings     = catalogSettings;
            _permissionService   = permissionService;

            _smartSearchSettings = smartSearchSettings;
            _settingService      = settingService;
            _logger             = logger;
            _smartSearchService = new SmartSearchService(productService, categoryService, orderRepository,
                                                         pictureService, _smartSearchSettings, _logger, cacheManager, _localizationService, mediaSettings,
                                                         _workContext, storeContext, webHelper);
        }
Exemplo n.º 2
0
        public SmartSearchService(IProductService productService, ICategoryService categoryService
                                  , IRepository <Order> orderRepository, IPictureService pictureService
                                  , SmartSearchSettings smartSearchSettings, ILogger logger,
                                  ICacheManager cacheManager,
                                  ILocalizationService localizationService,
                                  MediaSettings mediaSettings,
                                  IWorkContext workContext,
                                  IStoreContext storeContext,
                                  IWebHelper webHelper)
        {
            _cacheManager        = cacheManager;
            _localizationService = localizationService;
            _mediaSettings       = mediaSettings;
            _workContext         = workContext;
            _storeContext        = storeContext;
            _webHelper           = webHelper;

            _productService      = productService;
            _categoryService     = categoryService;
            _orderRepository     = orderRepository;
            _pictureService      = pictureService;
            _smartSearchSettings = smartSearchSettings;
            _logger = logger;
        }