Skip to content

Commit

Permalink
fix(core): use OC namespace for core ReponseDefinitions instead of OCA
Browse files Browse the repository at this point in the history
Signed-off-by: Julien CHATY-CAPELLE <julien@chaty-capelle.fr>
  • Loading branch information
Julien CHATY-CAPELLE committed May 27, 2024
1 parent ae4a6e8 commit 7fe4569
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion core/Controller/AutoCompleteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
namespace OC\Core\Controller;

use OCA\Core\ResponseDefinitions;
use OC\Core\ResponseDefinitions;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\ApiRoute;
use OCP\AppFramework\Http\DataResponse;
Expand Down
2 changes: 1 addition & 1 deletion core/Controller/ClientFlowLoginV2Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

use OC\Core\Db\LoginFlowV2;
use OC\Core\Exception\LoginFlowV2NotFoundException;
use OC\Core\ResponseDefinitions;
use OC\Core\Service\LoginFlowV2Service;
use OCA\Core\ResponseDefinitions;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
Expand Down
2 changes: 1 addition & 1 deletion core/Controller/CollaborationResourcesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
namespace OC\Core\Controller;

use Exception;
use OCA\Core\ResponseDefinitions;
use OC\Core\ResponseDefinitions;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\ApiRoute;
use OCP\AppFramework\Http\DataResponse;
Expand Down
2 changes: 1 addition & 1 deletion core/Controller/HoverCardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
namespace OC\Core\Controller;

use OC\Contacts\ContactsMenu\Manager;
use OCA\Core\ResponseDefinitions;
use OC\Core\ResponseDefinitions;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\ApiRoute;
use OCP\AppFramework\Http\DataResponse;
Expand Down
2 changes: 1 addition & 1 deletion core/Controller/NavigationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
namespace OC\Core\Controller;

use OCA\Core\ResponseDefinitions;
use OC\Core\ResponseDefinitions;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\ApiRoute;
use OCP\AppFramework\Http\DataResponse;
Expand Down
2 changes: 1 addition & 1 deletion core/Controller/ReferenceApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace OC\Core\Controller;

use OCA\Core\ResponseDefinitions;
use OC\Core\ResponseDefinitions;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\ApiRoute;
use OCP\AppFramework\Http\DataResponse;
Expand Down
2 changes: 1 addition & 1 deletion core/Controller/TaskProcessingApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

namespace OC\Core\Controller;

use OCA\Core\ResponseDefinitions;
use OC\Core\ResponseDefinitions;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\AnonRateLimit;
use OCP\AppFramework\Http\Attribute\ApiRoute;
Expand Down
2 changes: 1 addition & 1 deletion core/Controller/TeamsApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

namespace OC\Core\Controller;

use OCA\Core\ResponseDefinitions;
use OC\Core\ResponseDefinitions;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\ApiRoute;
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
Expand Down
2 changes: 1 addition & 1 deletion core/Controller/TextProcessingApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
namespace OC\Core\Controller;

use InvalidArgumentException;
use OCA\Core\ResponseDefinitions;
use OC\Core\ResponseDefinitions;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\AnonRateLimit;
use OCP\AppFramework\Http\Attribute\ApiRoute;
Expand Down
2 changes: 1 addition & 1 deletion core/Controller/TextToImageApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

namespace OC\Core\Controller;

use OC\Core\ResponseDefinitions;
use OC\Files\AppData\AppData;
use OCA\Core\ResponseDefinitions;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\AnonRateLimit;
use OCP\AppFramework\Http\Attribute\ApiRoute;
Expand Down
2 changes: 1 addition & 1 deletion core/Controller/UnifiedSearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
namespace OC\Core\Controller;

use InvalidArgumentException;
use OC\Core\ResponseDefinitions;
use OC\Search\SearchComposer;
use OC\Search\SearchQuery;
use OC\Search\UnsupportedFilter;
use OCA\Core\ResponseDefinitions;
use OCP\AppFramework\Http;
use OCP\AppFramework\Http\Attribute\ApiRoute;
use OCP\AppFramework\Http\DataResponse;
Expand Down
2 changes: 1 addition & 1 deletion core/ResponseDefinitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
*/

namespace OCA\Core;
namespace OC\Core;

/**
* @psalm-type CoreLoginFlowV2Credentials = array{
Expand Down
1 change: 1 addition & 0 deletions lib/composer/composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,7 @@
'OC\\Core\\Migrations\\Version29000Date20240131122720' => $baseDir . '/core/Migrations/Version29000Date20240131122720.php',
'OC\\Core\\Migrations\\Version30000Date20240429122720' => $baseDir . '/core/Migrations/Version30000Date20240429122720.php',
'OC\\Core\\Notification\\CoreNotifier' => $baseDir . '/core/Notification/CoreNotifier.php',
'OC\\Core\\ResponseDefinitions' => $baseDir . '/core/ResponseDefinitions.php',
'OC\\Core\\Service\\LoginFlowV2Service' => $baseDir . '/core/Service/LoginFlowV2Service.php',
'OC\\DB\\Adapter' => $baseDir . '/lib/private/DB/Adapter.php',
'OC\\DB\\AdapterMySQL' => $baseDir . '/lib/private/DB/AdapterMySQL.php',
Expand Down
1 change: 1 addition & 0 deletions lib/composer/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -1347,6 +1347,7 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2
'OC\\Core\\Migrations\\Version29000Date20240131122720' => __DIR__ . '/../../..' . '/core/Migrations/Version29000Date20240131122720.php',
'OC\\Core\\Migrations\\Version30000Date20240429122720' => __DIR__ . '/../../..' . '/core/Migrations/Version30000Date20240429122720.php',
'OC\\Core\\Notification\\CoreNotifier' => __DIR__ . '/../../..' . '/core/Notification/CoreNotifier.php',
'OC\\Core\\ResponseDefinitions' => __DIR__ . '/../../..' . '/core/ResponseDefinitions.php',
'OC\\Core\\Service\\LoginFlowV2Service' => __DIR__ . '/../../..' . '/core/Service/LoginFlowV2Service.php',
'OC\\DB\\Adapter' => __DIR__ . '/../../..' . '/lib/private/DB/Adapter.php',
'OC\\DB\\AdapterMySQL' => __DIR__ . '/../../..' . '/lib/private/DB/AdapterMySQL.php',
Expand Down

0 comments on commit 7fe4569

Please sign in to comment.