You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.2 KiB

3 years ago
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * @copyright Copyright (c) 2016, ownCloud, Inc.
  5. *
  6. * @author Bernhard Posselt <dev@bernhard-posselt.com>
  7. * @author Christoph Wurst <christoph@winzerhof-wurst.at>
  8. * @author Morris Jobke <hey@morrisjobke.de>
  9. * @author Roeland Jago Douma <roeland@famdouma.nl>
  10. * @author Thomas Müller <thomas.mueller@tmit.eu>
  11. *
  12. * @license AGPL-3.0
  13. *
  14. * This code is free software: you can redistribute it and/or modify
  15. * it under the terms of the GNU Affero General Public License, version 3,
  16. * as published by the Free Software Foundation.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU Affero General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU Affero General Public License, version 3,
  24. * along with this program. If not, see <http://www.gnu.org/licenses/>
  25. *
  26. */
  27. namespace OCP\AppFramework;
  28. use OCP\IContainer;
  29. use Psr\Container\ContainerInterface;
  30. /**
  31. * This is a tagging interface for a container that belongs to an app
  32. *
  33. * The interface currently extends IContainer, but this interface is deprecated as of Nextcloud 20,
  34. * thus this interface won't extend it anymore once that was removed. So migrate to the ContainerInterface
  35. * only.
  36. *
  37. * @since 6.0.0
  38. */
  39. interface IAppContainer extends ContainerInterface, IContainer {
  40. /**
  41. * used to return the appname of the set application
  42. * @return string the name of your application
  43. * @since 6.0.0
  44. * @deprecated 20.0.0
  45. */
  46. public function getAppName();
  47. /**
  48. * @return \OCP\IServerContainer
  49. * @since 6.0.0
  50. * @deprecated 20.0.0
  51. */
  52. public function getServer();
  53. /**
  54. * @param string $middleWare
  55. * @return boolean
  56. * @since 6.0.0
  57. * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerMiddleware
  58. */
  59. public function registerMiddleWare($middleWare);
  60. /**
  61. * Register a capability
  62. *
  63. * @param string $serviceName e.g. 'OCA\Files\Capabilities'
  64. * @since 8.2.0
  65. * @deprecated 20.0.0 use \OCP\AppFramework\Bootstrap\IRegistrationContext::registerCapability
  66. */
  67. public function registerCapability($serviceName);
  68. }