mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
Get rid of Repository interfaces
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php namespace Flarum\Core\Posts\Commands;
|
||||
|
||||
use Flarum\Core\Posts\PostRepositoryInterface;
|
||||
use Flarum\Core\Posts\PostRepository;
|
||||
use Flarum\Core\Posts\Events\PostWillBeSaved;
|
||||
use Flarum\Core\Support\DispatchesEvents;
|
||||
use Flarum\Core\Posts\CommentPost;
|
||||
@@ -10,14 +10,14 @@ class EditPostHandler
|
||||
use DispatchesEvents;
|
||||
|
||||
/**
|
||||
* @var PostRepositoryInterface
|
||||
* @var PostRepository
|
||||
*/
|
||||
protected $posts;
|
||||
|
||||
/**
|
||||
* @param PostRepositoryInterface $posts
|
||||
* @param PostRepository $posts
|
||||
*/
|
||||
public function __construct(PostRepositoryInterface $posts)
|
||||
public function __construct(PostRepository $posts)
|
||||
{
|
||||
$this->posts = $posts;
|
||||
}
|
||||
|
Reference in New Issue
Block a user