From 7ac3ee485c652b516a4ffe80e4db7cd86ef8d1a3 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 22 Apr 2024 18:57:00 -0100 Subject: [PATCH] fix(lexicon): moving to OCP Signed-off-by: Maxence Lange --- lib/composer/composer/autoload_classmap.php | 2 +- lib/composer/composer/autoload_static.php | 2 +- lib/private/AppConfig.php | 2 +- lib/{private => public}/ConfigLexicon/ConfigLexiconEntry.php | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) rename lib/{private => public}/ConfigLexicon/ConfigLexiconEntry.php (98%) diff --git a/lib/composer/composer/autoload_classmap.php b/lib/composer/composer/autoload_classmap.php index be03e314e8f26..2566fd1515c7f 100644 --- a/lib/composer/composer/autoload_classmap.php +++ b/lib/composer/composer/autoload_classmap.php @@ -216,6 +216,7 @@ 'OCP\\Comments\\MessageTooLongException' => $baseDir . '/lib/public/Comments/MessageTooLongException.php', 'OCP\\Comments\\NotFoundException' => $baseDir . '/lib/public/Comments/NotFoundException.php', 'OCP\\Common\\Exception\\NotFoundException' => $baseDir . '/lib/public/Common/Exception/NotFoundException.php', + 'OCP\\ConfigLexicon\\ConfigLexiconEntry' => $baseDir . '/lib/public/ConfigLexicon/ConfigLexiconEntry.php', 'OCP\\ConfigLexicon\\IConfigLexicon' => $baseDir . '/lib/public/ConfigLexicon/IConfigLexicon.php', 'OCP\\ConfigLexicon\\IConfigLexiconEntry' => $baseDir . '/lib/public/ConfigLexicon/IConfigLexiconEntry.php', 'OCP\\Config\\BeforePreferenceDeletedEvent' => $baseDir . '/lib/public/Config/BeforePreferenceDeletedEvent.php', @@ -1027,7 +1028,6 @@ 'OC\\Comments\\Manager' => $baseDir . '/lib/private/Comments/Manager.php', 'OC\\Comments\\ManagerFactory' => $baseDir . '/lib/private/Comments/ManagerFactory.php', 'OC\\Config' => $baseDir . '/lib/private/Config.php', - 'OC\\ConfigLexicon\\ConfigLexiconEntry' => $baseDir . '/lib/private/ConfigLexicon/ConfigLexiconEntry.php', 'OC\\Console\\Application' => $baseDir . '/lib/private/Console/Application.php', 'OC\\Console\\TimestampFormatter' => $baseDir . '/lib/private/Console/TimestampFormatter.php', 'OC\\ContactsManager' => $baseDir . '/lib/private/ContactsManager.php', diff --git a/lib/composer/composer/autoload_static.php b/lib/composer/composer/autoload_static.php index 3b512b29a4def..4b475a10fe8e9 100644 --- a/lib/composer/composer/autoload_static.php +++ b/lib/composer/composer/autoload_static.php @@ -249,6 +249,7 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2 'OCP\\Comments\\MessageTooLongException' => __DIR__ . '/../../..' . '/lib/public/Comments/MessageTooLongException.php', 'OCP\\Comments\\NotFoundException' => __DIR__ . '/../../..' . '/lib/public/Comments/NotFoundException.php', 'OCP\\Common\\Exception\\NotFoundException' => __DIR__ . '/../../..' . '/lib/public/Common/Exception/NotFoundException.php', + 'OCP\\ConfigLexicon\\ConfigLexiconEntry' => __DIR__ . '/../../..' . '/lib/public/ConfigLexicon/ConfigLexiconEntry.php', 'OCP\\ConfigLexicon\\IConfigLexicon' => __DIR__ . '/../../..' . '/lib/public/ConfigLexicon/IConfigLexicon.php', 'OCP\\ConfigLexicon\\IConfigLexiconEntry' => __DIR__ . '/../../..' . '/lib/public/ConfigLexicon/IConfigLexiconEntry.php', 'OCP\\Config\\BeforePreferenceDeletedEvent' => __DIR__ . '/../../..' . '/lib/public/Config/BeforePreferenceDeletedEvent.php', @@ -1060,7 +1061,6 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2 'OC\\Comments\\Manager' => __DIR__ . '/../../..' . '/lib/private/Comments/Manager.php', 'OC\\Comments\\ManagerFactory' => __DIR__ . '/../../..' . '/lib/private/Comments/ManagerFactory.php', 'OC\\Config' => __DIR__ . '/../../..' . '/lib/private/Config.php', - 'OC\\ConfigLexicon\\ConfigLexiconEntry' => __DIR__ . '/../../..' . '/lib/private/ConfigLexicon/ConfigLexiconEntry.php', 'OC\\Console\\Application' => __DIR__ . '/../../..' . '/lib/private/Console/Application.php', 'OC\\Console\\TimestampFormatter' => __DIR__ . '/../../..' . '/lib/private/Console/TimestampFormatter.php', 'OC\\ContactsManager' => __DIR__ . '/../../..' . '/lib/private/ContactsManager.php', diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php index 77a54d8103fc2..d73362f3fa2c1 100644 --- a/lib/private/AppConfig.php +++ b/lib/private/AppConfig.php @@ -39,7 +39,7 @@ use InvalidArgumentException; use JsonException; use OC\AppFramework\Bootstrap\Coordinator; -use OC\ConfigLexicon\ConfigLexiconEntry; +use OCP\ConfigLexicon\ConfigLexiconEntry; use OCP\ConfigLexicon\IConfigLexiconEntry; use OCP\DB\Exception as DBException; use OCP\DB\QueryBuilder\IQueryBuilder; diff --git a/lib/private/ConfigLexicon/ConfigLexiconEntry.php b/lib/public/ConfigLexicon/ConfigLexiconEntry.php similarity index 98% rename from lib/private/ConfigLexicon/ConfigLexiconEntry.php rename to lib/public/ConfigLexicon/ConfigLexiconEntry.php index c92ba84a3a0cf..817dd4bd5f018 100644 --- a/lib/private/ConfigLexicon/ConfigLexiconEntry.php +++ b/lib/public/ConfigLexicon/ConfigLexiconEntry.php @@ -22,10 +22,9 @@ * */ -namespace OC\ConfigLexicon; +namespace OCP\ConfigLexicon; use OC; -use OCP\ConfigLexicon\IConfigLexiconEntry; /** * Model that represent config values within an app config lexicon.