-
Notifications
You must be signed in to change notification settings - Fork 1
/
boot.php
49 lines (39 loc) · 1.81 KB
/
boot.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* This file is part of the Simpleshop package.
*
* @author FriendsOfREDAXO
* @author [email protected]
* @author [email protected]
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
namespace FriendsOfREDAXO\Simpleshop;
\rex_yform::addTemplatePath(\rex_path::addon('simpleshop', 'ytemplates'));
\rex_yform_manager_dataset::setModelClass(Coupon::TABLE, Coupon::class);
\rex_yform_manager_dataset::setModelClass(Customer::TABLE, Customer::class);
\rex_yform_manager_dataset::setModelClass(CustomerAddress::TABLE, CustomerAddress::class);
\rex_yform_manager_dataset::setModelClass(DiscountGroup::TABLE, DiscountGroup::class);
\rex_yform_manager_dataset::setModelClass(Feature::TABLE, Feature::class);
\rex_yform_manager_dataset::setModelClass(FeatureValue::TABLE, FeatureValue::class);
\rex_yform_manager_dataset::setModelClass(Order::TABLE, Order::class);
\rex_yform_manager_dataset::setModelClass(OrderProduct::TABLE, OrderProduct::class);
\rex_yform_manager_dataset::setModelClass(Package::TABLE, Package::class);
\rex_yform_manager_dataset::setModelClass(Product::TABLE, Product::class);
\rex_yform_manager_dataset::setModelClass(Session::TABLE, Session::class);
\rex_yform_manager_dataset::setModelClass(Tax::TABLE, Tax::class);
\rex_yform_manager_dataset::setModelClass(Variant::TABLE, Variant::class);
$include_files = glob($this->getPath('functions/*.inc.php'));
$include_files = array_merge($include_files, glob($this->getPath('inc/*.inc.php')));
foreach ($include_files as $include_file) {
include_once $include_file;
}
if (\rex::isBackend()) {
$include_files = glob($this->getPath('inc/backend/*.inc.php'));
foreach ($include_files as $include_file) {
include_once $include_file;
}
}
Settings::init();