# Using Ember Services in Discourse plugins

**URL:** <https://meta.discourse.org/t/using-ember-services-in-discourse-plugins/51713>\
**Category:** Development\
**Created:** [October 18, 2016, 9:42pm UTC](https://meta.discourse.org/t/using-ember-services-in-discourse-plugins/51713 "2016-10-18T21:42:47Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [October 19, 2016, 8:46pm UTC](https://meta.discourse.org/t/using-ember-services-in-discourse-plugins/51713/5 "2016-10-19T20:46:32Z")

</div>

> [@eviltrout](#):
>
> I suspect if you add a resolveService method to the custom resolver it might work!

Just gave this a try and it worked first time 🙂

Just added this to the custom resolver:

```plaintext
   resolveService(parsedName) {
      return this.customResolve(parsedName) || this._super(parsedName);
    },

```

Is there any way for me to add this method from my plugin? Or if not is a pull request to the main discourse repo likely to be accepted?

---

_[View the full topic](https://meta.discourse.org/t/using-ember-services-in-discourse-plugins/51713)._
