Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple index guide incorrect #36

Open
Moutard3 opened this issue Oct 31, 2018 · 3 comments
Open

Multiple index guide incorrect #36

Moutard3 opened this issue Oct 31, 2018 · 3 comments

Comments

@Moutard3
Copy link

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?

@lorenzo
Copy link
Owner

lorenzo commented Oct 31, 2018

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
Copy link
Owner

lorenzo commented Oct 31, 2018

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

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

@dereuromark
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants