https://github.com/atk4/core/blob/503ed2ff35865ca8b5499ecb61c95a6257b95621/src/DIContainerTrait.php#L50 proposal to call setXX() if exists instead of setting the XX property directly