How to replace Loader functions in 5.7?

Permalink
Loader::helper() can be replaced with Core::make(). How about other Loader functions such as Loader::db(), Loader::model(), Loader::block() and Loader::library()?

BlueFractals
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi BlueFractals,

I know that Loader::db() has been replaced with Database::connection();

From the migration guide:

"Use PHP Namespacing instead of Loader functions

Concrete5.7 introduces the use of php namespaces in lieu of the various Loader::xxxxx() functions (e.g. Loader::model(), Loader::library(), etc.)"
https://github.com/concrete5/concrete5/wiki/Migration-Guide#use-php-...