replaced injection callbacks for an event-based model