-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathboot.php
More file actions
32 lines (27 loc) · 857 Bytes
/
boot.php
File metadata and controls
32 lines (27 loc) · 857 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
29
30
31
32
<?php
/**
* This file is part of the Feeds package.
*
* @author FriendsOfREDAXO
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
require_once __DIR__ . '/vendor/autoload.php';
}
if (\rex_addon::get('cronjob')->isAvailable()) {
\rex_cronjob_manager::registerType(\FriendsOfRedaxo\Feeds\Cronjob::class);
}
\rex_media_manager::addEffect(\rex_effect_feeds::class);
if (\rex_addon::get('watson')->isAvailable()) {
\rex_extension::register(
'WATSON_PROVIDER',
static function (\rex_extension_point $ep) {
$subject = $ep->getSubject();
$subject[] = 'Watson\Workflows\Feeds\FeedProvider';
return $subject;
},
\rex_extension::LATE
);
}