I've been trying to implement Zend\Authentication
following the instructions on http://framework.zend.com/manual/current/en/modules/zend.authentication.intro.html, but I seem to be missing a piece of the puzzle.
I've built a custom adapter, and which is working fine, but I'm at a loss about how to implement custom storage.
I have created a custom class that is implementing the StorageInterface
, but I can't really wrap my head around what I am supposed to do with the methods.
The write method is the only one that gets input, which seems to be the second parameter of a Authentication\Result
.
What I don't understand is what data I am supposed to write to my storage (Redis) - will the contents of $contents
be enough? Shouldn't I have some kind of key or something available in the custom storage class that I can use to query my storage?