Skip to content

Commit

Permalink
Merge pull request #44 from beatrycze-volk/fix-exception
Browse files Browse the repository at this point in the history
[BUGFIX] Remove non-existent `UnsupportedRequestTypeException`
  • Loading branch information
beatrycze-volk authored Oct 8, 2024
2 parents 8683f3f + 725a79d commit 9c11c99
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 19 deletions.
5 changes: 0 additions & 5 deletions Classes/Controller/AccessController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -161,7 +160,6 @@ public function listAction(User $user = null)
* @throws IllegalObjectTypeException
* @throws StopActionException
* @throws UnknownObjectException
* @throws UnsupportedRequestTypeException
*/
public function informUserAction(User $user)
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -392,7 +388,6 @@ public function rejectReasonAction(Access $access, User $user)
* @param User $user
* @return void
* @throws StopActionException
* @throws UnsupportedRequestTypeException
* @throws IllegalObjectTypeException
* @throws UnknownObjectException
*/
Expand Down
2 changes: 0 additions & 2 deletions Classes/Controller/AdministrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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()
*
*/
Expand Down
5 changes: 0 additions & 5 deletions Classes/Controller/BasketController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -81,7 +80,6 @@ public function injectAccessRepository(\Slub\DigasFeManagement\Domain\Repository

/**
* @throws StopActionException
* @throws UnsupportedRequestTypeException
*/
public function initializeAction()
{
Expand Down Expand Up @@ -156,7 +154,6 @@ public function initializeAction()
*
* @return void
* @throws StopActionException
* @throws UnsupportedRequestTypeException
*/
public function indexAction()
{
Expand Down Expand Up @@ -197,7 +194,6 @@ public function overviewAction()
*
* @return void
* @throws StopActionException
* @throws UnsupportedRequestTypeException
* @throws IllegalObjectTypeException
* @throws UnknownObjectException
*/
Expand Down Expand Up @@ -264,7 +260,6 @@ public function requestAction()
* test is user is logged in
*
* @throws StopActionException
* @throws UnsupportedRequestTypeException
*/
protected function checkUserLoggedIn()
{
Expand Down
8 changes: 3 additions & 5 deletions Classes/Controller/ExtendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -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') {
Expand All @@ -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) {
}
}

Expand All @@ -98,7 +97,6 @@ public function dialogAction()
/**
* @param array $parameters
* @throws StopActionException
* @throws UnsupportedRequestTypeException
*/
protected function redirectToKitodoView(array $parameters)
{
Expand Down Expand Up @@ -184,7 +182,7 @@ public function disableAction()
->build();
try {
$this->redirectToUri($uri, null, 404);
} catch (StopActionException | UnsupportedRequestTypeException $e) {
} catch (StopActionException $e) {
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions Classes/Controller/NewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 9c11c99

Please sign in to comment.