forked from FriendsOfREDAXO/feeds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboot.php
31 lines (24 loc) · 794 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
26
27
28
29
30
31
<?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.
*/
require "vendor/autoload.php";
if (rex_addon::get('cronjob')->isAvailable()) {
rex_cronjob_manager::registerType(rex_cronjob_feeds::class);
}
if (rex_addon::get('media_manager')->isAvailable()) {
rex_media_manager::addEffect(rex_effect_feeds::class);
}
if (rex_addon::get('watson')->isAvailable()) {
function feedsearch(rex_extension_point $ep){
$subject = $ep->getSubject();
$subject[] = 'Watson\Workflows\Feeds\FeedProvider';
return $subject;
}
rex_extension::register('WATSON_PROVIDER', 'feedsearch', rex_extension::LATE);
}