W dniu poniedziałek, 15 sierpnia 2016 21:10:07 UTC+2 użytkownik Matthieu Napoli napisał: > > Hi, > PSR-11, aka ContainerInterface, has been sleeping for too long. Let's get > that PSR moving! > Here is a change I would like to suggest: *remove the interface > ContainerException*. >
Hello, IMO both interfaces are questionable. 1. ContainerException - One interface to represents a runtime and logic exceptions so at the end we should always base on the implementation. - No clear context. - Enforces exception implementation. 2. NotFoundException - Not found what? Container was not found? - No clear context. The whole idea to use interfaces with exceptions to mark 'something' is totally impractical. If we think that something is very important we should provide the exception classes derived from standard exception hierarchy, just like we do providing PSR interfaces, because classes are just interfaces. -- KP -- 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/e6ecd732-20e7-47ac-94e0-86225f014671%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
