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

Can't use file cache #9

Closed
ildarsaitkulov opened this issue Dec 1, 2020 · 3 comments
Closed

Can't use file cache #9

ildarsaitkulov opened this issue Dec 1, 2020 · 3 comments

Comments

@ildarsaitkulov
Copy link
Contributor

zanzara by default caching Closures into arrays in memory. But if you using file cache, Closures can't be serialized.

@cheeghi
Copy link
Collaborator

cheeghi commented Dec 2, 2020

Thank you for the report. It makes sense, closures aren't serializable. I think we are going to use opis/closure to serialize them.

Edit: I suppose you're talking about the closure passed to $ctx->nextStep($closure) to start a conversation, in that case you may declare a function and pass just the function name (string) instead of a closure.

@ildarsaitkulov
Copy link
Contributor Author

Thank you!

@cheeghi
Copy link
Collaborator

cheeghi commented Dec 10, 2020

Fixed in 0.6.0

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

2 participants