src/Certificate/ContentCertificate.php 1 location
|
@@ 61-71 (lines=11) @@
|
58 |
|
/** |
59 |
|
* {@inheritdoc} |
60 |
|
*/ |
61 |
|
public function getPath(): string |
62 |
|
{ |
63 |
|
if ($this->certificateFilePath) { |
64 |
|
$this->removeTemporaryFile($this->certificateFilePath); |
65 |
|
} |
66 |
|
|
67 |
|
$this->certificateFilePath = $this->createTemporaryFile(); |
68 |
|
file_put_contents($this->certificateFilePath, $this->content); |
69 |
|
|
70 |
|
return $this->certificateFilePath; |
71 |
|
} |
72 |
|
|
73 |
|
/** |
74 |
|
* {@inheritdoc} |
src/Jwt/ContentJwt.php 1 location
|
@@ 95-105 (lines=11) @@
|
92 |
|
/** |
93 |
|
* {@inheritdoc} |
94 |
|
*/ |
95 |
|
public function getPath(): string |
96 |
|
{ |
97 |
|
if ($this->certificateFilePath) { |
98 |
|
$this->removeTemporaryFile($this->certificateFilePath); |
99 |
|
} |
100 |
|
|
101 |
|
$this->certificateFilePath = $this->createTemporaryFile(); |
102 |
|
\file_put_contents($this->certificateFilePath, $this->content); |
103 |
|
|
104 |
|
return $this->certificateFilePath; |
105 |
|
} |
106 |
|
|
107 |
|
/** |
108 |
|
* Create a temporary file |