crypta-tech / seat-fitting

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

add events when fitting and doctrines change #3

Closed recursivetree closed 5 months ago

recursivetree commented 5 months ago

seat-inventory needs to update some stuff when a fitting changes. I tried to use an observer for this, but: The plugin first saves the fitting and only afterwards save the items of the fit, meaning the observer fires before the items of a fitting have been saved.

This PR adds a laravel event that fires after a fitting has been saved.

The same has been done with doctrines for the same reason.

This PR depends on https://github.com/eveseat/services/pull/180

recursivetree commented 5 months ago

styleci was a bit aggressive with touching unrelated parts