1b1b0c81496d11bbd85b31a5e9c131a0c8549611
[kivitendo-erp.git] / SL / ShopConnector / ALL.pm
1 package SL::ShopConnector::ALL;
2
3 use strict;
4
5 use SL::ShopConnector::Shopware;
6 use SL::ShopConnector::Shopware6;
7 use SL::ShopConnector::WooCommerce;
8
9 my %shop_connector_by_name = (
10   shopware    => 'SL::ShopConnector::Shopware',
11   shopware6   => 'SL::ShopConnector::Shopware6',
12   woocommerce => 'SL::ShopConnector::WooCommerce',
13 );
14
15 my @shop_connector_order = qw(
16   woocommerce
17   shopware
18   shopware6
19 );
20
21 my @shop_connectors = (
22   { id => "shopware",    description => "Shopware" },
23   { id => "shopware6",   description => "Shopware6" },
24   { id => "woocommerce", description => "WooCommerce" },
25 );
26
27
28 sub all_shop_connectors {
29   map { $shop_connector_by_name{$_} } @shop_connector_order;
30 }
31
32 sub shop_connector_class_by_name {
33   $shop_connector_by_name{$_[1]};
34 }
35
36 sub connectors {
37   \@shop_connectors;
38 }
39 1;