Merge pull request #3364 from nextcloud/bugfix/3334
This commit is contained in:
@@ -36,8 +36,10 @@ class CommentsApiController extends OCSController {
|
|||||||
private $commentService;
|
private $commentService;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
$appName, IRequest $request, $corsMethods = 'PUT, POST, GET, DELETE, PATCH', $corsAllowedHeaders = 'Authorization, Content-Type, Accept', $corsMaxAge = 1728000,
|
string $appName,
|
||||||
CommentService $commentService
|
IRequest $request,
|
||||||
|
CommentService $commentService,
|
||||||
|
string $corsMethods = 'PUT, POST, GET, DELETE, PATCH', string $corsAllowedHeaders = 'Authorization, Content-Type, Accept', int $corsMaxAge = 1728000
|
||||||
) {
|
) {
|
||||||
parent::__construct($appName, $request, $corsMethods, $corsAllowedHeaders, $corsMaxAge);
|
parent::__construct($appName, $request, $corsMethods, $corsAllowedHeaders, $corsMaxAge);
|
||||||
$this->commentService = $commentService;
|
$this->commentService = $commentService;
|
||||||
|
|||||||
Reference in New Issue
Block a user