Skip to content
\n

and not a bit a more readable or at least an UTF-8 encoded name?
\n(as far as I can see the file is new in Symfony 6.1.0).

","upvoteCount":1,"answerCount":3,"acceptedAnswer":{"@type":"Answer","text":"

It's a \"cookie\" class, one with a unique distinct super-short name, internal also, needed for technical reasons (namely minimizing the size of the serialized payload).
\nI made it non-utf8 on purpose, to have a single-char class-name that has low collision chance.

","upvoteCount":1,"url":"https://github.com/symfony/symfony/discussions/46477#discussioncomment-2834127"}}}
Discussion options

You must be logged in to vote

It's a "cookie" class, one with a unique distinct super-short name, internal also, needed for technical reasons (namely minimizing the size of the serialized payload).
I made it non-utf8 on purpose, to have a single-char class-name that has low collision chance.

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@albert-github
Comment options

@albert-github
Comment options

@DocFX
Comment options

@madmis
Comment options

@nicolas-grekas
Comment options

Answer selected by nicolas-grekas
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants