Skip to content

Commit 6d7ee40

Browse files
authored
Update Certificate.php
Added the option to force the request, bypassing the validation from Ploi
1 parent e3c8c8c commit 6d7ee40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Ploi/Resources/Certificate.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function get(int $id = null): Response
4747
: $this->getPloi()->makeAPICall($this->getEndpoint());
4848
}
4949

50-
public function create(string $certificate, string $type = 'letsencrypt'): Response
50+
public function create(string $certificate, string $type = 'letsencrypt', boolean $force = false): Response
5151
{
5252
// Remove the id
5353
$this->setId(null);
@@ -57,6 +57,7 @@ public function create(string $certificate, string $type = 'letsencrypt'): Respo
5757
'body' => json_encode([
5858
'certificate' => $certificate,
5959
'type' => $type,
60+
'force' => $force,
6061
]),
6162
];
6263

0 commit comments

Comments
 (0)