Fix optional parameter order
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
backportbot[bot]
parent
bdead3cdd5
commit
01bddf029e
@@ -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