-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathboot.php
More file actions
28 lines (22 loc) · 901 Bytes
/
boot.php
File metadata and controls
28 lines (22 loc) · 901 Bytes
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
<?php
use FriendsOfRedaxo\GooglePlaces\Place;
use FriendsOfRedaxo\GooglePlaces\Review;
use FriendsOfRedaxo\GooglePlaces\Api\rex_api_review_status;
if (rex_addon::get('cronjob')->isAvailable()) {
\rex_cronjob_manager::registerType('FriendsOfRedaxo\GooglePlaces\Cronjob');
}
rex_api_function::register('review_status', rex_api_review_status::class);
if (rex_addon::get('yform')->isAvailable() && !rex::isSafeMode()) {
rex_yform_manager_dataset::setModelClass(
'rex_googleplaces_place_detail',
Place::class
);
rex_yform_manager_dataset::setModelClass(
'rex_googleplaces_review',
Review::class
);
}
if (in_array(rex_be_controller::getCurrentPagePart(1), ['yform', 'googleplaces'], true)) {
rex_extension::register('YFORM_DATA_LIST', Place::epYformDataList(...));
rex_extension::register('YFORM_DATA_LIST', Review::epYformDataList(...));
}