1 package SL::ShopConnector::ALL;
5 use SL::ShopConnector::Shopware;
6 use SL::ShopConnector::Shopware6;
7 use SL::ShopConnector::WooCommerce;
9 my %shop_connector_by_name = (
10 shopware => 'SL::ShopConnector::Shopware',
11 shopware6 => 'SL::ShopConnector::Shopware6',
12 woocommerce => 'SL::ShopConnector::WooCommerce',
15 my %shop_connector_by_connector = (
16 shopware => 'SL::ShopConnector::Shopware',
17 shopware6 => 'SL::ShopConnector::Shopware6',
18 woocommerce => 'SL::ShopConnector::WooCommerce',
21 my @shop_connector_order = qw(
27 my @shop_connectors = (
28 { id => "shopware", description => "Shopware" },
29 { id => "shopware6", description => "Shopware6" },
30 { id => "woocommerce", description => "WooCommerce" },
34 sub all_shop_connectors {
35 map { $shop_connector_by_name{$_} } @shop_connector_order;
38 sub shop_connector_class_by_name {
39 $shop_connector_by_name{$_[1]};
42 sub shop_connector_class_by_connector {
43 $shop_connector_by_connector{$_[1]};