(type, contrConstructor)
| 91 | } |
| 92 | |
| 93 | function registerPeer(type, contrConstructor) { |
| 94 | if (peerRepo.has(type)) { |
| 95 | throw new Error('Subcontroller class already registered.'); |
| 96 | } else { |
| 97 | peerRepo.set(type, contrConstructor); |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Verify if port is allowed to create controller |
no test coverage detected