Inject container into definition