refactor out common dependenceis
This commit is contained in:
1 parent
ddf3e8251d
commit
dc321580c3
20 files changed
+170
-233
No files matched your search
@@ -12,15 +12,13 @@ import BaseController from "./baseController.js";
|
||||
class DiagnosticController extends BaseController {
|
||||
/**
|
||||
* Creates an instance of DiagnosticController.
|
||||
*
|
||||
* @param {Object} commonDependencies - Common dependencies injected into the controller
|
||||
* @param {Object} dependencies - The dependencies required by the controller
|
||||
* @param {Object} dependencies.diagnosticService - Service for system diagnostics and monitoring
|
||||
* @param {Object} dependencies.errorService - Service for error handling
|
||||
*/
|
||||
constructor({ diagnosticService, errorService }) {
|
||||
super();
|
||||
constructor(commonDependencies, { diagnosticService }) {
|
||||
super(commonDependencies);
|
||||
this.diagnosticService = diagnosticService;
|
||||
this.errorService = errorService;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user