Removed unneeded dependencies
This commit is contained in:
parent
8fb1b87ae5
commit
2d1b5308f3
2 changed files with 1 additions and 17 deletions
|
@ -1,33 +1,21 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Szurubooru\Routes\Posts\Notes;
|
namespace Szurubooru\Routes\Posts\Notes;
|
||||||
use Szurubooru\Controllers\ViewProxies\PostNoteViewProxy;
|
|
||||||
use Szurubooru\Helpers\InputReader;
|
|
||||||
use Szurubooru\Privilege;
|
use Szurubooru\Privilege;
|
||||||
use Szurubooru\Routes\Posts\AbstractPostRoute;
|
use Szurubooru\Routes\Posts\AbstractPostRoute;
|
||||||
use Szurubooru\Services\PostNotesService;
|
use Szurubooru\Services\PostNotesService;
|
||||||
use Szurubooru\Services\PostService;
|
|
||||||
use Szurubooru\Services\PrivilegeService;
|
use Szurubooru\Services\PrivilegeService;
|
||||||
|
|
||||||
class DeletePostNote extends AbstractPostRoute
|
class DeletePostNote extends AbstractPostRoute
|
||||||
{
|
{
|
||||||
private $inputReader;
|
|
||||||
private $postService;
|
|
||||||
private $postNotesService;
|
private $postNotesService;
|
||||||
private $privilegeService;
|
private $privilegeService;
|
||||||
private $postNoteViewProxy;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
InputReader $inputReader,
|
|
||||||
PostService $postService,
|
|
||||||
PostNotesService $postNotesService,
|
PostNotesService $postNotesService,
|
||||||
PrivilegeService $privilegeService,
|
PrivilegeService $privilegeService)
|
||||||
PostNoteViewProxy $postNoteViewProxy)
|
|
||||||
{
|
{
|
||||||
$this->inputReader = $inputReader;
|
|
||||||
$this->postService = $postService;
|
|
||||||
$this->postNotesService = $postNotesService;
|
$this->postNotesService = $postNotesService;
|
||||||
$this->privilegeService = $privilegeService;
|
$this->privilegeService = $privilegeService;
|
||||||
$this->postNoteViewProxy = $postNoteViewProxy;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getMethods()
|
public function getMethods()
|
||||||
|
|
|
@ -6,26 +6,22 @@ use Szurubooru\Helpers\InputReader;
|
||||||
use Szurubooru\Privilege;
|
use Szurubooru\Privilege;
|
||||||
use Szurubooru\Routes\Posts\AbstractPostRoute;
|
use Szurubooru\Routes\Posts\AbstractPostRoute;
|
||||||
use Szurubooru\Services\PostNotesService;
|
use Szurubooru\Services\PostNotesService;
|
||||||
use Szurubooru\Services\PostService;
|
|
||||||
use Szurubooru\Services\PrivilegeService;
|
use Szurubooru\Services\PrivilegeService;
|
||||||
|
|
||||||
class UpdatePostNote extends AbstractPostRoute
|
class UpdatePostNote extends AbstractPostRoute
|
||||||
{
|
{
|
||||||
private $inputReader;
|
private $inputReader;
|
||||||
private $postService;
|
|
||||||
private $postNotesService;
|
private $postNotesService;
|
||||||
private $privilegeService;
|
private $privilegeService;
|
||||||
private $postNoteViewProxy;
|
private $postNoteViewProxy;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
InputReader $inputReader,
|
InputReader $inputReader,
|
||||||
PostService $postService,
|
|
||||||
PostNotesService $postNotesService,
|
PostNotesService $postNotesService,
|
||||||
PrivilegeService $privilegeService,
|
PrivilegeService $privilegeService,
|
||||||
PostNoteViewProxy $postNoteViewProxy)
|
PostNoteViewProxy $postNoteViewProxy)
|
||||||
{
|
{
|
||||||
$this->inputReader = $inputReader;
|
$this->inputReader = $inputReader;
|
||||||
$this->postService = $postService;
|
|
||||||
$this->postNotesService = $postNotesService;
|
$this->postNotesService = $postNotesService;
|
||||||
$this->privilegeService = $privilegeService;
|
$this->privilegeService = $privilegeService;
|
||||||
$this->postNoteViewProxy = $postNoteViewProxy;
|
$this->postNoteViewProxy = $postNoteViewProxy;
|
||||||
|
|
Loading…
Reference in a new issue