scout-extended
scout-extended copied to clipboard
Refactoring needed in class `Algolia\ScoutExtended\Settings\LocalFactory::class`
The class Algolia\ScoutExtended\Settings\LocalFactory::class is responsable to detect settings out of Laravel models. We should consider a re-write this logic, and split it into multiple classes.
it's a fix or a new feature for you ? For me it's just a fix
@TomKlotzPro Neither. You should create a branch: refacto/local-factory. Please write your plan before coding.
My solution is to have an interface SettingAttributeInterface with one method(key,value,array)return array . Add for each different SettingAttribute class implements the interface then on factory call the object and their method.