[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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user