addHook - support object
Merge pull request #10 from Antek88/master

addHook - support object