I think the perfect way of describe an API has already a name, and is already existing in PHP: interfaces.
Interfaces are API, implementations are in the black box. That's the way you ran into by implementing Dependency Injection: implement an interface, declare your implementation as the service, and there you are. Simple, efficient, no need for more silly annotations. Wouldn't this be a perfect universal solution ? Or please give us scenarii where interfaces cannot be used, or where methods that are not supposed to be part of API could be present in the interface :) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
