Is there a way to dynamically add methods to Nette\Object ? I want timer
code to be executed on creation and destruction on certain types of objects
without having to add these methods on baseclasses.
You can do one ugly thing: use magic __call method and some
interface to adding/removing methods (e.g. closures) dynamically. But this could
lead to very confusing code (like Magento eshop).