Wraplet 1.0.0-rc.2: Introducing the Wiring API
Inheritance is one of OOP’s most powerful tools, but also one of its easiest to misuse. When applied in the wrong places, it can create internal dependency hell.
Yet Wraplet does provide base classes with basic implementations of the Wraplet API
that users can extend. They are thin, sure, but I never wanted
to force them on people using Wraplet. That's why Wraplet API is encapsulated in a single property,
and can be created manually on any class, so anyone who wants to avoid inheritance can do so completely.
The Wraplet API can be created by calling a single function: createWrapletApi.
You can hook into the wraplet's lifecycle by passing lifecycle callbacks to it.
Hard to make it simpler than that, right?
