{"issue":{"title":"Named injections, map.toValue(null), satisfies() and getInstance()","created_at":"2011-11-11T18:38:04Z","user":{"login":"darscan","id":59090,"url":"https://api.github.com/users/darscan","gravatar_id":"a09862c4e99d05160beaf5d1f0eee31a","avatar_url":"https://secure.gravatar.com/avatar/a09862c4e99d05160beaf5d1f0eee31a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":null,"updated_at":"2011-12-23T16:07:03Z","state":"closed","labels":[],"id":2212116,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":"2011-12-23T16:07:03Z","html_url":"https://github.com/tschneidereit/SwiftSuspenders/issues/62","body":"If I map a named value to null, satisfies returns true, but getInstance fails:\r\n\r\n    injector.map(Function, 'callback').toValue(null);\r\n    if (injector.satisfies(Function, 'callback'))\r\n      injector.getInstance(Function, 'callback');\r\n\r\n> Error: No mapping found for request Function|callback. getInstance only creates an unmapped instance if no name is given.","number":62,"url":"https://api.github.com/repos/tschneidereit/SwiftSuspenders/issues/62","comments":6,"assignee":null},"action":"closed"}