Project

General

Profile

Actions

Bug #92824

closed

AbstractController - redirect and forward method deprecated without a migration?

Added by Mati Sediqi almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
2020-11-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I was cloning a project's extension today while I've noticed that inside my Controller (for a BE module) has a deprecated method "$this->redirect". While checking the changelog of 10.2, as commented in the core, I didn't found the log nor a migration for that.

The same goes for the AbstractController->forward/->redirectToUri methods.
Comment: @deprecated since TYPO3 10.2 and will be removed in version 11.0.

Taking a look at the docs here https://docs.typo3.org/m/typo3/book-extbasefluid/master/en-us/7-Controllers/1-Creating-Controllers-and-Actions.html#flow-pattern-editing-an-existing-domain-object
I've also noticed it also calls the (deprecated?) redirect method in the updateAction-method, but nothing added therefore I guess it might got lost and never documented..

Best regards

Actions #1

Updated by Henrik Elsner almost 4 years ago

I'm missing that too right now..

Actions #2

Updated by Henrik Elsner almost 4 years ago

  • Status changed from New to Needs Feedback

Hi,

I just checked and guess i got it.

Those are actually two changes.
1. the AbstractController is dropped and the ActionController should be used. In this class the redirect/forward method is not dropped /deprecated
Deprecation-89554-DeprecateTYPO3CMSExtbaseMvcControllerAbstractController.rst

2. They still did mark it deprecated in v11 and to drop for the next version v12 as it seems.
You can find the migration here:
Deprecation-92815-ActionControllerForward.rst

When you search for the 92815 you can also find the Feature RST-File.

That should handle the whole situation.
Basically you should switch to the ActionController and you should be safe for v10 - at least that's how i understand that

Actions #3

Updated by Mati Sediqi almost 4 years ago

Ah perfect, thanks alot!

Can be closed then :)

Actions #4

Updated by Riccardo De Contardi almost 4 years ago

  • Status changed from Needs Feedback to Closed

Hi and sorry for the late reply, closing now.

If you think that this is the wrong decision or I have misunderstood, please reopen it or ping me.

Thank you.

Actions

Also available in: Atom PDF