From 725a79df55a8df92519ef135a20a8be33bdc6845 Mon Sep 17 00:00:00 2001 From: Beatrycze Volk Date: Mon, 7 Oct 2024 19:05:44 +0200 Subject: [PATCH] Remove non-existent `UnsupportedRequestTypeException` --- Classes/Controller/AccessController.php | 5 ----- Classes/Controller/AdministrationController.php | 2 -- Classes/Controller/BasketController.php | 5 ----- Classes/Controller/ExtendController.php | 8 +++----- Classes/Controller/NewController.php | 2 -- 5 files changed, 3 insertions(+), 19 deletions(-) diff --git a/Classes/Controller/AccessController.php b/Classes/Controller/AccessController.php index 222a4cf..b3d3243 100644 --- a/Classes/Controller/AccessController.php +++ b/Classes/Controller/AccessController.php @@ -32,7 +32,6 @@ use Slub\DigasFeManagement\Domain\Repository\KitodoDocumentRepository; use TYPO3\CMS\Core\Messaging\AbstractMessage; use TYPO3\CMS\Extbase\Mvc\Exception\StopActionException; -use TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException; use TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException; use TYPO3\CMS\Extbase\Persistence\Exception\UnknownObjectException; use TYPO3\CMS\Extbase\Utility\LocalizationUtility; @@ -161,7 +160,6 @@ public function listAction(User $user = null) * @throws IllegalObjectTypeException * @throws StopActionException * @throws UnknownObjectException - * @throws UnsupportedRequestTypeException */ public function informUserAction(User $user) { @@ -208,7 +206,6 @@ public function newAction(User $user, Access $access = null) * @return void * @throws IllegalObjectTypeException * @throws StopActionException - * @throws UnsupportedRequestTypeException */ public function createAction(User $user, Access $access) { @@ -236,7 +233,6 @@ public function createAction(User $user, Access $access) * @param User $user * @param Access $access * @return void - * @throws UnsupportedRequestTypeException * @throws IllegalObjectTypeException * @throws UnknownObjectException * @throws StopActionException @@ -392,7 +388,6 @@ public function rejectReasonAction(Access $access, User $user) * @param User $user * @return void * @throws StopActionException - * @throws UnsupportedRequestTypeException * @throws IllegalObjectTypeException * @throws UnknownObjectException */ diff --git a/Classes/Controller/AdministrationController.php b/Classes/Controller/AdministrationController.php index ad5de6f..be6f4fc 100644 --- a/Classes/Controller/AdministrationController.php +++ b/Classes/Controller/AdministrationController.php @@ -121,7 +121,6 @@ public function editUserAction(User $user) * @param User $user * @TYPO3\CMS\Extbase\Annotation\Validate("Slub\DigasFeManagement\Domain\Validator\ServersideValidator", param="user") * @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException - * @throws \TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException */ public function updateUserAction(User $user) { @@ -187,7 +186,6 @@ public function deactivateUserAction(User $user, $setActiveState = false) * @param User $user * @return void * @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException - * @throws \TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException * @see \In2code\Femanager\Controller\EditController::redirectIfDirtyObject() * */ diff --git a/Classes/Controller/BasketController.php b/Classes/Controller/BasketController.php index 4488c1b..02212bf 100644 --- a/Classes/Controller/BasketController.php +++ b/Classes/Controller/BasketController.php @@ -30,7 +30,6 @@ use Slub\DigasFeManagement\Domain\Model\Access; use Slub\SlubWebDigas\Domain\Model\KitodoDocument; use TYPO3\CMS\Extbase\Mvc\Exception\StopActionException; -use TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException; use TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException; use TYPO3\CMS\Extbase\Persistence\Exception\UnknownObjectException; use TYPO3\CMS\Extbase\Persistence\Generic\QueryResult; @@ -81,7 +80,6 @@ public function injectAccessRepository(\Slub\DigasFeManagement\Domain\Repository /** * @throws StopActionException - * @throws UnsupportedRequestTypeException */ public function initializeAction() { @@ -156,7 +154,6 @@ public function initializeAction() * * @return void * @throws StopActionException - * @throws UnsupportedRequestTypeException */ public function indexAction() { @@ -197,7 +194,6 @@ public function overviewAction() * * @return void * @throws StopActionException - * @throws UnsupportedRequestTypeException * @throws IllegalObjectTypeException * @throws UnknownObjectException */ @@ -264,7 +260,6 @@ public function requestAction() * test is user is logged in * * @throws StopActionException - * @throws UnsupportedRequestTypeException */ protected function checkUserLoggedIn() { diff --git a/Classes/Controller/ExtendController.php b/Classes/Controller/ExtendController.php index 1d6cc79..c808846 100644 --- a/Classes/Controller/ExtendController.php +++ b/Classes/Controller/ExtendController.php @@ -32,7 +32,6 @@ use TYPO3\CMS\Core\Page\PageRenderer; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Extbase\Mvc\Exception\StopActionException; -use TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException; use TYPO3\CMS\Core\Context\Exception\AspectNotFoundException; /** @@ -64,7 +63,7 @@ public function dialogAction() $this->controllerContext->getFlashMessageQueue('extbase.flashmessages.tx_femanager_pi1')->getAllMessagesAndFlush(); //redirect $this->redirectToKitodoView(['tx_dlf' => $kitodoParams]); - } catch (StopActionException | UnsupportedRequestTypeException $e) { + } catch (StopActionException $e) { } } elseif ($femanagerParams['action'] === 'create') { @@ -86,7 +85,7 @@ public function dialogAction() $GLOBALS["TSFE"]->fe_user->setKey("ses", $this->settings['dialog']['cookieName'], true); try { $this->redirectToKitodoView(['tx_dlf' => $kitodoParams]); - } catch (StopActionException | UnsupportedRequestTypeException $e) { + } catch (StopActionException $e) { } } @@ -98,7 +97,6 @@ public function dialogAction() /** * @param array $parameters * @throws StopActionException - * @throws UnsupportedRequestTypeException */ protected function redirectToKitodoView(array $parameters) { @@ -184,7 +182,7 @@ public function disableAction() ->build(); try { $this->redirectToUri($uri, null, 404); - } catch (StopActionException | UnsupportedRequestTypeException $e) { + } catch (StopActionException $e) { } } } diff --git a/Classes/Controller/NewController.php b/Classes/Controller/NewController.php index 0a50107..f44b079 100644 --- a/Classes/Controller/NewController.php +++ b/Classes/Controller/NewController.php @@ -29,7 +29,6 @@ use Psr\Http\Message\ResponseInterface; use Slub\DigasFeManagement\Domain\Model\User; use TYPO3\CMS\Core\Utility\GeneralUtility; -use TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException; /** * Class NewController @@ -106,7 +105,6 @@ public function createAction(\In2code\Femanager\Domain\Model\User $user) * * @param User|\In2code\Femanager\Domain\Model\User $user * @return void - * @throws UnsupportedRequestTypeException */ protected function createUserConfirmationRequest(\In2code\Femanager\Domain\Model\User $user) {