mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 14:04:03 +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\Http\UrlGenerator;
|
||||
use Flarum\Post\Filter\PostFilterer;
|
||||
use Flarum\Post\PostRepository;
|
||||
use Flarum\Search\SearchCriteria;
|
||||
use Illuminate\Support\Arr;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
|
@ -46,6 +47,11 @@ class ListPostsController extends AbstractListController
|
|||
*/
|
||||
protected $filterer;
|
||||
|
||||
/**
|
||||
* @var PostRepository
|
||||
*/
|
||||
protected $posts;
|
||||
|
||||
/**
|
||||
* @var UrlGenerator
|
||||
*/
|
||||
|
@ -53,11 +59,13 @@ class ListPostsController extends AbstractListController
|
|||
|
||||
/**
|
||||
* @param PostFilterer $filterer
|
||||
* @param PostRepository $posts
|
||||
* @param UrlGenerator $url
|
||||
*/
|
||||
public function __construct(PostFilterer $filterer, UrlGenerator $url)
|
||||
public function __construct(PostFilterer $filterer, PostRepository $posts, UrlGenerator $url)
|
||||
{
|
||||
$this->filterer = $filterer;
|
||||
$this->posts = $posts;
|
||||
$this->url = $url;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user