Issue with uvm_config_db set and get

In reply to chr_sue:

I use this

my_spi_env_config=spi_env_config::type_id::create("spi_env_config");

in the build_phase to create the object. Must I do this in the constructor ?