I agree with Matthieu. Specifying what legal characters are supported definitely belongs to another PSR (the one where we put things into the container). I'll propose a PR in container-interop/service-provider <https://github.com/container-interop/service-provider/> to define precisely the allowed identifiers.
Unlike PSR-6, there is no "set" in this PSR, therefore no need to standardize the acceptable identifiers. For PSR-11, if the identifier passed is "🍕" (the pizza slice emoji) and the container does not support emoji identifiers (what a shame! :) ), the container should return a NotFoundException. David. Le mercredi 2 novembre 2016 22:49:33 UTC+1, Matthieu Napoli a écrit : > > Splitting of the main thread, quoting Larry: > > > The spec should specify what legal characters are for an entry > identifier, and what if any reserved characters there are. It should > also specify minimum supported key length and character sets, for > completeness. I recommend borrowing PSR-6's language here, which I > believe addresses this area well. Whether it uses the same reserved > character list or another one I don't feel strongly about. I would not > consider this a Review-breaking change. > > Why should we specify that? This is explicitly a "non-goal" of PSR-11: > https://github.com/php-fig/fig-standards/blob/master/proposed/container-meta.md#32-non-goals > > -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/5fa24b40-1b48-4c0e-907b-3fc88cc965dc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
