File tree 3 files changed +24
-0
lines changed
3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ $server->installPapertrail(array $data);
107
107
$server->removePapertrail();
108
108
$server->enableOPCache();
109
109
$server->disableOPCache();
110
+ $server->upgradePHP();
110
111
```
111
112
112
113
## Server SSH Keys
@@ -167,6 +168,9 @@ $forge->removePapertrail($serverId);
167
168
// OPCache
168
169
$forge->enableOPCache($serverId);
169
170
$forge->disableOPCache($serverId);
171
+
172
+ // PHP
173
+ $forge->upgradePHP($serverId);
170
174
```
171
175
172
176
## Server Daemons
Original file line number Diff line number Diff line change @@ -241,4 +241,14 @@ public function disableOPCache($serverId)
241
241
{
242
242
$ this ->delete ("servers/ $ serverId/php/opcache " );
243
243
}
244
+
245
+ /**
246
+ * Upgrade to latest PHP version.
247
+ *
248
+ * @param $serverId
249
+ */
250
+ public function upgradePHP ($ serverId )
251
+ {
252
+ $ this ->post ("servers/ $ serverId/php/upgrade " );
253
+ }
244
254
}
Original file line number Diff line number Diff line change @@ -284,4 +284,14 @@ public function disableOPCache()
284
284
{
285
285
return $ this ->forge ->disableOPCache ($ this ->id );
286
286
}
287
+
288
+ /**
289
+ * Upgrade to latest PHP version.
290
+ *
291
+ * @return Server
292
+ */
293
+ public function upgradePHP ()
294
+ {
295
+ return $ this ->forge ->upgradePHP ($ this ->id );
296
+ }
287
297
}
You can’t perform that action at this time.
0 commit comments