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\Broadcast\Events\\IBroadcastEventis now deprecated as it is unused.\OCP\TaskProcessing\ISynchronousWatermarkingProvideris now deprecated.\OCP\TaskProcessing\ISynchronousOptionsAwareProvidershould now be used.
Older deprecations
You find all current deprecations in this section.
Deprecated since Nextcloud 34
\OCP\AppFramework\App::buildAppNamespaceis deprecated in favor of non-static method\OCP\App\IAppManager::getAppNamespace\OCP\Util::setChannelis deprecated in favor of\OCP\ServerVersion::setChannel.\OCP\Util::linkToAbsoluteis deprecated in favor of\OCP\IUrlGenerator::getAbsoluteUrland\OCP\IUrlGenerator::linkTo.\OCP\Util::linkToRemoveis deprecated in favor of\OCP\IUrlGenerator::linkToRemote.\OCP\Util::isPublicLinkPasswordRequiredis deprecated in favor of\OCP\Share\IManager::shareApiLinkEnforcePassword.\OCP\Util::isDefaultExpireDateEnforcedis deprecated in favor of\OCP\Share\IManager::shareApiLinkDefaultExpireDateEnforced.
Also see the older Release Notes for deprecations.