summaryrefslogtreecommitdiff
path: root/providers/Reddit.php
blob: af4923ba450d532f1e7e9b52405b3a9576dd718e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace Providers;

require_once('Rss.php');

class Reddit extends \Providers\Rss {

    protected function _getFeedUrl($feed) {
        return sprintf('https://www.reddit.com/r/%s/new/.rss', $feed);
    }

    protected function _getCachePath() {
        return '../cache/reddit.%s';
    }

}

?>