Config class and upadting to 5.7

Permalink
Quick question for the community.

I have this bit of code in a block I'm updating from 5.6 to 5.7:

$co = new Config();
$pkg = Package::getByHandle("myPackage");
$co->setPackageObject($pkg);


Does anyone know how to get this to work in 5.7? I tried adding "use Config;" at the top of the page by the namespace but this is unrecognized. Is this replaced with something else in 5.7 or am I missing something? Thanks.

Doki
 
jakobfuchs replied on at Permalink Reply
jakobfuchs