audit-stash icon indicating copy to clipboard operation
audit-stash copied to clipboard

Multiple index guide incorrect

Open Moutard3 opened this issue 6 years ago • 3 comments

The README specify that we need to use %s in the configuration to use multiple index. However, the 2 configurations on it are the same, how should I proceed?

Moutard3 avatar Oct 31 '18 14:10 Moutard3

Looks like the feature got lost in a refactoring. The %s token should actually now be part of each Index class, but seems like there is no easy way to do this. Would you like to help fix this situation?

lorenzo avatar Oct 31 '18 20:10 lorenzo

Ok, it seems you can do that from the behaviour attach call:

$this->addBehavior('AuditStash.AuditLog', ['index' => 'articles%s', 'type' => 'article'])

lorenzo avatar Oct 31 '18 21:10 lorenzo

Does this need to be documented? Or can we close?

dereuromark avatar Jan 10 '24 10:01 dereuromark