{"action":"closed","issue":{"url":"https://api.github.com/repos/koopjs/koop/issues/225","labels_url":"https://api.github.com/repos/koopjs/koop/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/koopjs/koop/issues/225/comments","events_url":"https://api.github.com/repos/koopjs/koop/issues/225/events","html_url":"https://github.com/koopjs/koop/issues/225","id":98957375,"number":225,"title":"Allow provider controllers to access koop instance","user":{"login":"timwis","id":761444,"avatar_url":"https://avatars.githubusercontent.com/u/761444?v=3","gravatar_id":"","url":"https://api.github.com/users/timwis","html_url":"https://github.com/timwis","followers_url":"https://api.github.com/users/timwis/followers","following_url":"https://api.github.com/users/timwis/following{/other_user}","gists_url":"https://api.github.com/users/timwis/gists{/gist_id}","starred_url":"https://api.github.com/users/timwis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timwis/subscriptions","organizations_url":"https://api.github.com/users/timwis/orgs","repos_url":"https://api.github.com/users/timwis/repos","events_url":"https://api.github.com/users/timwis/events{/privacy}","received_events_url":"https://api.github.com/users/timwis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-08-04T12:33:23Z","updated_at":"2015-08-07T17:20:00Z","closed_at":"2015-08-07T17:20:00Z","body":"Branching off from #195 for something more specific - how should provider controllers access the koop instance? For instance, if they need to access `koop.config` or plugins or anything else set in [koop/index.js](https://github.com/koopjs/koop/blob/master/index.js). For #195, I just included a reference to the koop instance in the provider's model, which the controller already has access to. Happy to do it another way if you prefer.\r\n\r\nLet me know if you'd like a pull request on one of the providers; I just figured since it'd probably need to be done for every provider, a discussion thread would be better.\r\n\r\nAlso, if the use case here is strictly #195, feel free to merge this discussion back into that thread. I'm assuming there'd be other reasons to access the koop instance."}}