-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathboot.php
25 lines (20 loc) · 897 Bytes
/
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
<?php
use Alexplusde\YComFastForward\LoginToken;
use Alexplusde\YComFastForward\Api\MultiLogin;
/** @var rex_addon $this */
if (rex::isBackend()) {
if ('ycom_fast_forward/settings' === rex_be_controller::getCurrentPage()) {
rex_extension::register('OUTPUT_FILTER', static function (rex_extension_point $ep) {
$suchmuster = 'class="###ycom_fast_forward-settings-editor###"';
$ersetzen = strval(rex_config::get('ycom_fast_forward', 'editor'));
$ep->setSubject(str_replace($suchmuster, $ersetzen, $ep->getSubject()));
});
}
}
if (rex_addon::get('yform')->isAvailable() && !rex::isSafeMode()) {
rex_yform_manager_dataset::setModelClass(
'rex_ycom_fast_forward_activation_key',
LoginToken::class, // Hier anpassen, falls Namespace verwendet wird
);
}
rex_api_function::register('ycom_fast_forward_multi_login', MultiLogin::class);