[COMPONENT][Collection][CONTROLLER][Collection] Add utility method to call Feed::query in Collection, which handles getting and passing the page

This commit is contained in:
2022-01-02 23:59:23 +00:00
parent 07b65584ff
commit 141c5f6785
6 changed files with 13 additions and 16 deletions

View File

@@ -5,7 +5,12 @@ declare(strict_types = 1);
namespace Component\Collection\Util\Controller;
use App\Core\Controller;
use Component\Feed\Feed;
class Collection extends Controller
{
public function query(string $query, ?string $language = null, ?Actor $actor = null)
{
return Feed::query($query, $this->int('page') ?? 1, $language, $actor);
}
}