Regarding you last suggestion I'm having trouble seeing the difference with > the current version of the spec, could you pinpoint it more explicitly? >
There are two differences: The most important one is that the *wording* of the PSR need to be as clear as possible. Finding a clear way to express things, so that the PSR is self explanatory enough, is a must (the answers on the ML will be lost in history.) The second one is a really technical consequence I didn't realize when writing the previous comment: It makes this statements useless (which is a good thing since that's the one we're worried about): > A call to get can trigger additional calls to get (to fetch the dependencies). If one of those dependencies is missing, the NotFoundExceptionInterface triggered by the inner get call SHOULD NOT bubble out. Instead, it should be wrapped in an exception implementing the ContainerExceptionInterface that does not implement the NotFoundExceptionInterface. If one wants to be able to really differentiate these situations, one can already do: just check "has" before "get". If, after doing so, "get" throws a NotFoundExceptionInterface, then it's a second level missing dep. Isn't it? Btw, don't we miss an "InvalidArgumentException", to be thrown when the arg passed to has/get is not a string? Nicolas -- 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/CAOWwgpmTforjkDGNG9FPRy9sW%3D6eKo7CTiJ7LoaLMXYDM4LV%3Dw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
