Commit 2f70805
authored
Remove custom processManager support in PHPRequestHandler (#3005)
## Motivation
Simplify the `PHPRequestHandler` configuration API by removing the
option to pass a custom `processManager`.
The current configuration type is a union that allows either:
1. Passing a pre-built `processManager`
2. Passing a `phpFactory` callback (and optionally `maxPhpInstances`)
No callers use option 1 — everyone passes a `phpFactory`. This union
type adds complexity to the API and the implementation without providing
value.
## Implementation
- Remove the union type from `PHPRequestHandlerConfiguration`
- Always require `phpFactory` in the configuration
- Remove the conditional logic that checked for `processManager` in the
constructor
- `PHPRequestHandler` now always creates its own `PHPProcessManager`
internally
## Testing
Existing tests should continue to pass since no code was using the
custom processManager option.1 parent 3d50af9 commit 2f70805
1 file changed
+31
-54
lines changedLines changed: 31 additions & 54 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
116 | 97 | | |
117 | 98 | | |
118 | 99 | | |
| |||
202 | 183 | | |
203 | 184 | | |
204 | 185 | | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
228 | 205 | | |
229 | 206 | | |
230 | 207 | | |
| |||
245 | 222 | | |
246 | 223 | | |
247 | 224 | | |
248 | | - | |
249 | | - | |
| 225 | + | |
| 226 | + | |
250 | 227 | | |
251 | 228 | | |
252 | 229 | | |
| |||
0 commit comments