verbb / wishlist

A Craft CMS plugin for wishlists for your users to save things to
Other
11 stars 12 forks source link

Expose public methods like "getInUserLists" in WishlistVariable.php as services #127

Closed Antimated closed 5 months ago

Antimated commented 1 year ago

What are you trying to do?

We want to use the functionality of the getInUserLists twig variable but we need this data in our own module. Now we have to basically copy this method in our own service so we can expose it to the rest of our project.

What's your proposed solution?

Copy the logic of the public methods in WishlistVariable.php to a service so we can use these services in our own modules 😄!

Additional context

No response

engram-design commented 1 year ago

Pencilling in as part of a larger refactor

engram-design commented 5 months ago

Added in 3.0.0