File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,22 @@ class AdminHandler extends Handler
27
27
* details for server version
28
28
*/
29
29
const OPTION_DETAILS = 'details ' ;
30
+
31
+ /**
32
+ * Get the server's storage engine
33
+ *
34
+ * This will throw if the engine data cannot be retrieved
35
+ *
36
+ * @throws Exception
37
+ *
38
+ * @return mixed - an object returning the engine information
39
+ * @since 3.2
40
+ */
41
+ public function getEngine ()
42
+ {
43
+ $ response = $ this ->getConnection ()->get (Urls::URL_ENGINE );
44
+ return $ response ->getJson ();
45
+ }
30
46
31
47
/**
32
48
* Get the server version
Original file line number Diff line number Diff line change @@ -162,6 +162,11 @@ abstract class Urls
162
162
* URL for transactions
163
163
*/
164
164
const URL_TRANSACTION = '/_api/transaction ' ;
165
+
166
+ /**
167
+ * URL for storage engine
168
+ */
169
+ const URL_ENGINE = '/_api/engine ' ;
165
170
166
171
/**
167
172
* URL for admin version
You can’t perform that action at this time.
0 commit comments