mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 20:22:31 +08:00
Fix missing PostRepository argument
This was accidentially removed in 458a5cc6be
This commit is contained in:
parent
458a5cc6be
commit
d0adb244da
|
@ -12,6 +12,7 @@ namespace Flarum\Api\Controller;
|
||||||
use Flarum\Api\Serializer\PostSerializer;
|
use Flarum\Api\Serializer\PostSerializer;
|
||||||
use Flarum\Http\UrlGenerator;
|
use Flarum\Http\UrlGenerator;
|
||||||
use Flarum\Post\Filter\PostFilterer;
|
use Flarum\Post\Filter\PostFilterer;
|
||||||
|
use Flarum\Post\PostRepository;
|
||||||
use Flarum\Search\SearchCriteria;
|
use Flarum\Search\SearchCriteria;
|
||||||
use Illuminate\Support\Arr;
|
use Illuminate\Support\Arr;
|
||||||
use Psr\Http\Message\ServerRequestInterface;
|
use Psr\Http\Message\ServerRequestInterface;
|
||||||
|
@ -46,6 +47,11 @@ class ListPostsController extends AbstractListController
|
||||||
*/
|
*/
|
||||||
protected $filterer;
|
protected $filterer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var PostRepository
|
||||||
|
*/
|
||||||
|
protected $posts;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var UrlGenerator
|
* @var UrlGenerator
|
||||||
*/
|
*/
|
||||||
|
@ -53,11 +59,13 @@ class ListPostsController extends AbstractListController
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param PostFilterer $filterer
|
* @param PostFilterer $filterer
|
||||||
|
* @param PostRepository $posts
|
||||||
* @param UrlGenerator $url
|
* @param UrlGenerator $url
|
||||||
*/
|
*/
|
||||||
public function __construct(PostFilterer $filterer, UrlGenerator $url)
|
public function __construct(PostFilterer $filterer, PostRepository $posts, UrlGenerator $url)
|
||||||
{
|
{
|
||||||
$this->filterer = $filterer;
|
$this->filterer = $filterer;
|
||||||
|
$this->posts = $posts;
|
||||||
$this->url = $url;
|
$this->url = $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user