Class injections

Adds the possibility to include classes in object graph.