1
0
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:
Toby Zerner
2015-07-04 18:38:59 +09:30
parent f7b6d8a568
commit 86811c6508
43 changed files with 203 additions and 341 deletions

View File

@@ -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;
}