diff options
Diffstat (limited to 'apps/provisioning_api/lib/Controller/AppsController.php')
-rw-r--r-- | apps/provisioning_api/lib/Controller/AppsController.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/provisioning_api/lib/Controller/AppsController.php b/apps/provisioning_api/lib/Controller/AppsController.php index d0c91c3cee8..6a6db017f99 100644 --- a/apps/provisioning_api/lib/Controller/AppsController.php +++ b/apps/provisioning_api/lib/Controller/AppsController.php @@ -31,7 +31,6 @@ declare(strict_types=1); namespace OCA\Provisioning_API\Controller; use OC_App; -use OCP\API; use OCP\App\AppPathNotFoundException; use OCP\App\IAppManager; use OCP\AppFramework\Http\DataResponse; @@ -93,7 +92,7 @@ class AppsController extends OCSController { return new DataResponse($info); } - throw new OCSException('The request app was not found', API::RESPOND_NOT_FOUND); + throw new OCSException('The request app was not found', OCSController::RESPOND_NOT_FOUND); } /** @@ -106,7 +105,7 @@ class AppsController extends OCSController { try { $this->appManager->enableApp($app); } catch (AppPathNotFoundException $e) { - throw new OCSException('The request app was not found', API::RESPOND_NOT_FOUND); + throw new OCSException('The request app was not found', OCSController::RESPOND_NOT_FOUND); } return new DataResponse(); } |