@@ -23,7 +23,7 @@ class LEConnector
23
23
{
24
24
public $ baseURL ;
25
25
26
- private $ nonce ;
26
+ protected $ nonce ;
27
27
28
28
public $ keyChange ;
29
29
public $ newAccount ;
@@ -35,13 +35,13 @@ class LEConnector
35
35
public $ accountDeactivated = false ;
36
36
37
37
/** @var LoggerInterface */
38
- private $ log ;
38
+ protected $ log ;
39
39
40
40
/** @var ClientInterface */
41
- private $ httpClient ;
41
+ protected $ httpClient ;
42
42
43
43
/** @var CertificateStorageInterface */
44
- private $ storage ;
44
+ protected $ storage ;
45
45
46
46
/**
47
47
* Initiates the LetsEncrypt Connector class.
@@ -70,7 +70,7 @@ public function __construct(
70
70
/**
71
71
* Requests the LetsEncrypt Directory and stores the necessary URLs in this LetsEncrypt Connector instance.
72
72
*/
73
- private function getLEDirectory ()
73
+ protected function getLEDirectory ()
74
74
{
75
75
$ req = $ this ->get ('/directory ' );
76
76
$ this ->keyChange = $ req ['body ' ]['keyChange ' ];
@@ -83,7 +83,7 @@ private function getLEDirectory()
83
83
/**
84
84
* Requests a new nonce from the LetsEncrypt server and stores it in this LetsEncrypt Connector instance.
85
85
*/
86
- private function getNewNonce ()
86
+ protected function getNewNonce ()
87
87
{
88
88
$ result = $ this ->head ($ this ->newNonce );
89
89
@@ -133,7 +133,7 @@ public function checkHTTPChallenge($domain, $token, $keyAuthorization)
133
133
*
134
134
* @return array Returns an array with the keys 'request', 'header' and 'body'.
135
135
*/
136
- private function request ($ method , $ URL , $ data = null )
136
+ protected function request ($ method , $ URL , $ data = null )
137
137
{
138
138
if ($ this ->accountDeactivated ) {
139
139
throw new LogicException ('The account was deactivated. No further requests can be made. ' );
@@ -175,7 +175,7 @@ private function request($method, $URL, $data = null)
175
175
return $ this ->formatResponse ($ method , $ requestURL , $ response );
176
176
}
177
177
178
- private function formatResponse ($ method , $ requestURL , ResponseInterface $ response )
178
+ protected function formatResponse ($ method , $ requestURL , ResponseInterface $ response )
179
179
{
180
180
$ body = $ response ->getBody ();
181
181
@@ -210,7 +210,7 @@ private function formatResponse($method, $requestURL, ResponseInterface $respons
210
210
return $ jsonresponse ;
211
211
}
212
212
213
- private function maintainNonce ($ requestMethod , ResponseInterface $ response )
213
+ protected function maintainNonce ($ requestMethod , ResponseInterface $ response )
214
214
{
215
215
if ($ response ->hasHeader ('Replay-Nonce ' )) {
216
216
$ this ->nonce = $ response ->getHeader ('Replay-Nonce ' )[0 ];
0 commit comments