dysath / seat-fitting

A Fitting/Doctrine module for SeAT
GNU General Public License v2.0
14 stars 21 forks source link

Internal API for other seat modules #85

Closed recursivetree closed 1 year ago

recursivetree commented 2 years ago

I'm writing an inventory management tool for my corp. As a feature, we would like to calculate stocks of our doctrines. These doctrines should be loaded from the fitting plugin. Should I just directly bind to the Fitting Model, or should I submit a pull request that adds a layer of abstraction with an api?

alkari-verende commented 2 years ago

I'm looking at doing something similar, and found possibly related work in the whtools SeAT plugin. That plugin directly references the models from this fitting plugin.

recursivetree commented 2 years ago

I ended up doing that. https://github.com/recursivetree/seat-inventory/blob/master/src/Helpers/FittingPluginHelper.php https://github.com/recursivetree/seat-inventory/blob/master/src/Http/Controllers/InventoryController.php, line 233