Closed hikaru-shindo closed 10 years ago
Sounds as a sane addition. You don't use the setter in getOptions, could you update that? Furthermore, I've a few additions:
Anyhow, thanks for the idea and PR!
Maybe rename $cookie to $cookieName and option to cookie_name?
I think the validation of the cookie name is not necessary. We are all adults here ;) But I added a basic validation nevertheless. I also changed variable and option names because I think atukais suggestion is more semantic.
@hikaru-shindo it's rather that with the ZF2 config, it's easy to somewhere have an empty variable set as default which is never overwritten. Thus, a check if you have a sane cookie name might seem unnecessary, it helps you with debugging for those kinds of problems.
Anyhow, looks good. I'm gonna merge :)
At the moment it is not possible to change the name of the locale cookie. I think some people would like to change the cookie name.