1 package SL::ShopConnector::ALL;
5 use SL::ShopConnector::Shopware;
6 use SL::ShopConnector::WooCommerce;
8 my %shop_connector_by_name = (
9 shopware => 'SL::ShopConnector::Shopware',
10 woocommerce => 'SL::ShopConnector::WooCommerce',
13 my %shop_connector_by_connector = (
14 shopware => 'SL::ShopConnector::Shopware',
15 woocommerce => 'SL::ShopConnector::WooCommerce',
18 my @shop_connector_order = qw(
23 my @shop_connectors = (
24 { id => "shopware", description => "Shopware" },
25 { id => "woocommerce", description => "WooCommerce" },
29 sub all_shop_connectors {
30 map { $shop_connector_by_name{$_} } @shop_connector_order;
33 sub shop_connector_class_by_name {
34 $shop_connector_by_name{$_[1]};
37 sub shop_connector_class_by_connector {
38 $shop_connector_by_connector{$_[1]};