Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function registerController(identifier, constructor) {
if (!application) {
application = Application.start({ logLevel: LogLevel.DEBUG })
}
if (!controllerConstructors.has(identifier)) {
controllerConstructors.set(identifier, constructor)
application.register(identifier, constructor)
}
}