1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13645] Proper OOP for feeds

PHPBB3-13645
This commit is contained in:
Tristan Darricau
2015-08-06 14:20:06 +02:00
parent 8e5e954438
commit 5df9a45473
15 changed files with 506 additions and 320 deletions

View File

@@ -17,7 +17,7 @@ use phpbb\auth\auth;
use phpbb\config\config;
use phpbb\db\driver\driver_interface;
use phpbb\exception\http_exception;
use phpbb\feed\base;
use phpbb\feed\feed_interface;
use phpbb\feed\exception\feed_unavailable_exception;
use phpbb\feed\exception\unauthorized_exception;
use phpbb\feed\helper as feed_helper;
@@ -252,11 +252,11 @@ class feed
/**
* Display a given feed
*
* @param base $feed
* @param feed_interface $feed
*
* @return Response
*/
protected function send_feed(base $feed)
protected function send_feed(feed_interface $feed)
{
try
{
@@ -275,13 +275,13 @@ class feed
/**
* Really send the feed
*
* @param base $feed
* @param feed_interface $feed
*
* @return Response
*
* @throw exception\feed_exception
*/
protected function send_feed_do(base $feed)
protected function send_feed_do(feed_interface $feed)
{
$feed_updated_time = 0;
$item_vars = array();