Fix version number in phpdoc for app loading refactor

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/37425/head
Côme Chilliet 2 years ago
parent 6741b37356
commit e94a689bca
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
  1. 6
      lib/private/legacy/OC_App.php
  2. 8
      lib/public/App/IAppManager.php

@ -98,7 +98,7 @@ class OC_App {
*
* @param string $app
* @return bool
* @deprecated 26.0.0 use IAppManager::isAppLoaded
* @deprecated 27.0.0 use IAppManager::isAppLoaded
*/
public static function isAppLoaded(string $app): bool {
return \OC::$server->get(IAppManager::class)->isAppLoaded($app);
@ -129,7 +129,7 @@ class OC_App {
*
* @param string $app
* @throws Exception
* @deprecated 26.0.0 use IAppManager::loadApp
* @deprecated 27.0.0 use IAppManager::loadApp
*/
public static function loadApp(string $app): void {
\OC::$server->get(IAppManager::class)->loadApp($app);
@ -171,7 +171,7 @@ class OC_App {
* @param string $app
* @param array $types
* @return bool
* @deprecated 26.0.0 use IAppManager::isType
* @deprecated 27.0.0 use IAppManager::isType
*/
public static function isType(string $app, array $types): bool {
return \OC::$server->get(IAppManager::class)->isType($app, $types);

@ -96,14 +96,14 @@ interface IAppManager {
/**
* Load an app, if not already loaded
* @param string $app app id
* @since 26.0.0
* @since 27.0.0
*/
public function loadApp(string $app): void;
/**
* Check if an app is loaded
* @param string $app app id
* @since 26.0.0
* @since 27.0.0
*/
public function isAppLoaded(string $app): bool;
@ -207,13 +207,13 @@ interface IAppManager {
* exists.
*
* if $types is set to non-empty array, only apps of those types will be loaded
* @since 26.0.0
* @since 27.0.0
*/
public function loadApps(array $types = []): bool;
/**
* Check if an app is of a specific type
* @since 26.0.0
* @since 27.0.0
*/
public function isType(string $app, array $types): bool;

Loading…
Cancel
Save