Dont rely on PHP globals for cookies
Haehnchen opened this issue · comments
Daniel Espendiller commented
For activating cookies there is a directy access to $_COOKIE
, for now its not suitable to use together with the Symfony bundle.
You should move this loading into a interface and maybe provide here just an implementation via globals. The Symfony bundle should then use a RequestStack implementation.
return in_array($name, array_map('trim', explode($this->separator, $_COOKIE[$this->name])), true);
Michel Chowanski commented
Thanks for the hint @Haehnchen. I will check it ...
Michel Chowanski commented
Merged into master.
Michel Chowanski commented
A PR for Bundle will be created shortly.