Deprecations
In order to improve our platform we are phasing out some APIs. Deprecated APIs are kept for at least three years before removal, unless the breakage can not be avoided.
We highly recommend using the Nextcloud Rector rules, which can fix some API changes automatically.
New deprecations
Todo
This page needs a section for every new deprecation.
\OCP\Util::setChannelis now deprecated and you need to use\OCP\ServerVersion::setChannelinstead.\OCP\Util::linkToAbsoluteis now deprecated and you need to use\OCP\IUrlGenerator::getAbsoluteUrland\OCP\IUrlGenerator::linkToinstead.\OCP\Util::linkToRemoveis now deprecated and you need to use\OCP\IUrlGenerator::linkToRemoteinstead.\OCP\Util::isPublicLinkPasswordRequiredis now deprecated and you need to use\OCP\Share\IManager::shareApiLinkEnforcePasswordinstead.\OCP\Util::isDefaultExpireDateEnforcedis now deprecated and you need to use\OCP\Share\IManager::shareApiLinkDefaultExpireDateEnforcedinstead.
Older deprecations
You find all current deprecations in this section.
Also see the older Release Notes for deprecations.