added domain.apply_to_container, similar to Provider at Pimple