* Get controller by name * 通过名称获取控制器
(name: string)
| 399 | * 通过名称获取控制器 |
| 400 | */ |
| 401 | public getController(name: string): Controller | null { |
| 402 | for (const c of this._controllers) { |
| 403 | if (c.name === name) { |
| 404 | return c; |
| 405 | } |
| 406 | } |
| 407 | return null; |
| 408 | } |
| 409 | |
| 410 | /** |
| 411 | * Add controller |
no outgoing calls
no test coverage detected