You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-8
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,9 @@ $config = [
25
25
'timeout' => 0, // The API timeout. In seconds (default 0 to wait indefinitely). (optional)
26
26
'connect_timeout' => 0, // The API connection timeout. In seconds (default 0 to wait indefinitely) (optional)
27
27
'version' => null, // The API Version. (Default null). (optional)
28
-
'handler' => null // The callable Handler or HandlerStack. (Default null). (optional)
29
-
'features' => null // A set of additional features [e.g. lucene search]. (Default null). (optional)
28
+
'handler' => null, // The callable Handler or HandlerStack. (Default null). (optional)
29
+
'features' => null, // A set of additional features [e.g. lucene search]. (Default null). (optional)
30
+
'guzzle' => null, // Additional Guzzle Request Options. These options can overwrite some default options (Default null). (optional)
30
31
];
31
32
32
33
$engageConfig = [
@@ -36,8 +37,9 @@ $engageConfig = [
36
37
'timeout' => 0, // The API timeout. In seconds (default 0 to wait indefinitely). (optional)
37
38
'connect_timeout' => 0, // The API connection timeout. In seconds (default 0 to wait indefinitely) (optional)
38
39
'version' => null, // The API version. (Default null). (optional)
39
-
'handler' => null // The callable Handler or HandlerStack. (Default null). (optional)
40
-
'features' => null // A set of additional features [e.g. lucene search]. (Default null). (optional)
40
+
'handler' => null, // The callable Handler or HandlerStack. (Default null). (optional)
41
+
'features' => null, // A set of additional features [e.g. lucene search]. (Default null). (optional)
42
+
'guzzle' => null, // Additional Guzzle Request Options. These options can overwrite some default options (Default null). (optional)
41
43
];
42
44
43
45
use OpencastApi\Opencast;
@@ -74,8 +76,9 @@ $config = [
74
76
'timeout' => 0, // The API timeout. In seconds (default 0 to wait indefinitely). (optional)
75
77
'connect_timeout' => 0, // The API connection timeout. In seconds (default 0 to wait indefinitely) (optional)
76
78
'version' => null, // The API version. (Default null). (optional)
77
-
'handler' => null // The callable Handler or HandlerStack. (Default null). (optional)
78
-
'features' => null // A set of additional features [e.g. lucene search]. (Default null). (optional)
79
+
'handler' => null, // The callable Handler or HandlerStack. (Default null). (optional)
80
+
'features' => null, // A set of additional features [e.g. lucene search]. (Default null). (optional)
81
+
'guzzle' => null, // Additional Guzzle Request Options. These options can overwrite some default options (Default null). (optional)
79
82
];
80
83
81
84
@@ -114,10 +117,12 @@ $config = [
114
117
'timeout' => 0, // The API timeout. In seconds (default 0 to wait indefinitely). (optional)
115
118
'connect_timeout' => 0, // The API connection timeout. In seconds (default 0 to wait indefinitely) (optional)
116
119
'version' => null, // The API version. (Default null). (optional)
117
-
'handler' => null // The callable Handler or HandlerStack. (Default null). (optional)
118
-
'features' => null // A set of additional features [e.g. lucene search]. (Default null). (optional)
120
+
'handler' => null, // The callable Handler or HandlerStack. (Default null). (optional)
121
+
'features' => null, // A set of additional features [e.g. lucene search]. (Default null). (optional)
122
+
'guzzle' => null, // Additional Guzzle Request Options. These options can overwrite some default options (Default null). (optional)
119
123
];
120
124
```
125
+
**UPDATE (v1.9.0):** a new config parameter called "guzzle" is introduced, which is intended to pass additional guzzle request options to the call. These options will take precedence over the default configs like uri, auth and timeouts, but some other options like query, fome_params and json will be overwritten by the function if present.
121
126
**UPDATE (v1.7.0):** the new items called `features` is added to the configuration array. As of now, it is meant to hanlde the toggle behavior to enable/disable Lucene search endpoint simply by adding `'features' => ['lucene' => true]`. Just keep in mind that this endpoint id off by default and won't work in Opencast 16 onwards. Therefore, developer must be very careful to use this feature and to toggle it!
122
127
123
128
NOTE: the configuration for presentation (`engage` node) responsible for search has to follow the same definition as normal config. But in case any parameter is missing, the value will be taken from the main config param.
0 commit comments