Skip to content

Commit

Permalink
Merge pull request #37425 from nextcloud/fix/fix-since-version-number…
Browse files Browse the repository at this point in the history
…-for-app-loading
  • Loading branch information
juliusknorr authored Mar 30, 2023
2 parents da4c5a0 + e94a689 commit 5e7e3eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/private/legacy/OC_App.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static function cleanAppId(string $app): string {
*
* @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);
Expand Down Expand Up @@ -129,7 +129,7 @@ public static function loadApps(array $types = []): bool {
*
* @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);
Expand Down Expand Up @@ -171,7 +171,7 @@ public static function registerAutoloading(string $app, string $path, bool $forc
* @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);
Expand Down
8 changes: 4 additions & 4 deletions lib/public/App/IAppManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ public function isDefaultEnabled(string $appId):bool;
/**
* 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;

Expand Down Expand Up @@ -207,13 +207,13 @@ public function isShipped($appId);
* 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;

Expand Down

0 comments on commit 5e7e3eb

Please sign in to comment.