我写了这个
@singleton("httpBasicAuth")
export class HttpBasicAuthentication {...}
但是当我打电话时
container.get("httpBasicAuth")
它只返回"httpBasicAuth"
,我看到container._resolvers
有{"httpBasicAuth" => StrategyResolver}
,hasResolver("httpBasicAuth")
返回true
如何使用字符串键HttpBasicAuthentication
检索httpBasicAuth
?