* Append new services to container * * @api * @param {Object } newContainer
(newContainer)
| 255 | * @param {Object<string, *>} newContainer |
| 256 | */ |
| 257 | static append(newContainer) { |
| 258 | container = deepMerge(container, newContainer) |
| 259 | |
| 260 | // If new support objects are added, update the proxy support |
| 261 | if (newContainer.support) { |
| 262 | // Merge the new support config with existing config |
| 263 | container.proxySupportConfig = { ...container.proxySupportConfig, ...newContainer.support } |
| 264 | // Recreate the proxy with merged config |
| 265 | container.proxySupport = createSupportObjects(container.proxySupportConfig) |
| 266 | } |
| 267 | |
| 268 | debug('appended', JSON.stringify(newContainer).slice(0, 300)) |
| 269 | } |
| 270 | |
| 271 | /** |
| 272 | * Clear container |
nothing calls this directly
no test coverage detected