Use function now uses smarty->registerClass instead of injected local class.