mirror of
https://github.com/flarum/core.git
synced 2025-10-13 07:54:25 +02:00
Extract new Flarum\Post namespace
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace Flarum\Api\Controller;
|
||||
|
||||
use Flarum\Core\Repository\PostRepository;
|
||||
use Flarum\Post\PostRepository;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
use Tobscure\JsonApi\Document;
|
||||
|
||||
@@ -34,12 +34,12 @@ class ShowPostController extends AbstractShowController
|
||||
];
|
||||
|
||||
/**
|
||||
* @var \Flarum\Core\Repository\PostRepository
|
||||
* @var \Flarum\Post\PostRepository
|
||||
*/
|
||||
protected $posts;
|
||||
|
||||
/**
|
||||
* @param PostRepository $posts
|
||||
* @param \Flarum\Post\PostRepository $posts
|
||||
*/
|
||||
public function __construct(PostRepository $posts)
|
||||
{
|
||||
|
Reference in New Issue
Block a user