How to pass a variable value from env class to transaction class without using config_db?

Im not sure why you need to do this, but i think you can do
val= $root.testbench.env.variable
val is transaction class local variable