lib/shop_invader/services.rb
require 'locomotive/steam/services'
module Locomotive::Steam::Services
class Instance
register :elastic do
ShopInvader::ElasticService.new(current_site, request.env['steam.authenticated_entry'], locale)
end
register :algolia do
ShopInvader::AlgoliaService.new(current_site, request.env['steam.authenticated_entry'], locale)
end
register :search_engine do
ShopInvader::SearchEngineService.new(current_site, locale, elastic, algolia)
end
register :erp do
ShopInvader::ErpService.new(
request, current_site, request.env['rack.session'], request.env['steam.authenticated_entry'], locale, cookie, content_entry)
end
register :erp_auth do
ShopInvader::ErpAuthService.new(request, erp, content_entry)
end
end
end