[owncloud-devel] Deprecated methods for ownCloud 8

Bernhard Posselt dev at bernhard-posselt.com
Wed Dec 17 11:19:56 GMT 2014


Hi guys,

because more and more API's can be access as objects we decided to 
deprecate the following things:

OCP\AppFramework\Core\IAPI: lib/public/appframework/iapi.php
   * complete interface deprecated ->
      * Hooks should be managed at the classes they hook into (User 
hooks are managed through IUserManager for instance)
      * Scripts and CSS styles should be included in template files only 
(even for plugins!) in order to avoid loading uneeded resources that 
potentially break stuff and are slowing down the request
      * The IAppManager class is now responsible for isAppEnabled queries

OCP\AppFramework\IAppContainer: lib/public/appframework/iappcontainer.php
  * getCoreApi -> OCP\AppFramework\Core\IAPI is deprecated
  * isAdminUser -> https://github.com/owncloud/core/pull/12892
  * isLoggedIn -> https://github.com/owncloud/core/pull/12887

The deprecated interfaces will ofc also deprecate all implemented 
methods of classes that implement the interface


More information about the Devel mailing list