I have this code:
$node = new Node();
Now I want to make the 'Node' object dynamic
I get the dynamic name from my config class, this works:
$var = Config::instance('modules/activities/config')->get('className');
$node = new $var();
But how can I write this in 1 line?
This doensn't work:
$node = new Config::instance('modules/activities/config')->get('className')();