3 use SimplePie\SimplePie
;
4 use dokuwiki\FeedParserFile
;
8 * We override some methods of the original SimplePie class here
10 class FeedParser
extends SimplePie
13 * Constructor. Set some defaults
15 public function __construct()
17 parent
::__construct();
18 $this->enable_cache(false);
19 $this->registry
->register(File
::class, FeedParserFile
::class);
23 * Backward compatibility for older plugins
25 * phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
28 public function feed_url($url)
30 $this->set_feed_url($url);