Refactor to allow callables and not just closures
Merge pull request #367 from thephpleague/callable

Refactor to allow callables and not just closures