Implement app.inject