Explained more clearly why it's okay for interface classes to be keys.

This commit sponsored by Nick Glynn.  Thank you!
This commit is contained in:
Christopher Allan Webber 2013-05-29 18:10:09 -05:00
parent 9d881aeeb4
commit ea49f37821

View File

@ -273,7 +273,9 @@ Just write the interface like so::
It's fine to use your interface as the key instead of a string if you
like.
like. (Usually this is messy, but since interfaces are public and
since you need to import them into your plugin anyway, interfaces
might as well be keys.)
Then a plugin providing your interface can be like::