Task #2444

Refactor Request -> Remove *ObjectNamePattern

Added by Sebastian Kurfuerst over 6 years ago. Updated almost 5 years ago.

Status:Rejected Start date:2009-01-11
Priority:Must have Due date:
Assigned To:Sebastian Kurfuerst % Done:

0%

Category:MVC
Target version:- Estimated time:5.00 hours
Sprint: Has patch:
PHP Version: Complexity:

Description

We should refactor the MVC_Request, to move all logic out of it.

This means the following:
  • Drop $controllerObjectNamePattern (and getters/setters for it)
  • Drop $viewObjectNamePattern (and getters/setters for it)
  • Presumably, a lot of other stuff can be removed as well due to that refacoring.
  • Introduce a new $fullyQualifiedControllerObjectName (including setters/getters) which contains fully qualified Controller name, such as F3\MyPackage\MySubPackage\Controller\SomeController
  • Analogous for $fullyQualifiedViewObjectName

The fullyQualifiedControllerName is being set by the MVC\Web\Routing\Router.

Associated revisions

Revision f3815ec8
Added by Bastian Waidelich over 6 years ago

  • FLOW3: (MVC) Implemented support for subpackages in router. Relates to #2444.

Revision fe2501ed
Added by Karsten Dambekalns over 6 years ago

FLOW3:
  • removed controllerObjectNamePattern and viewObjectNamePattern from some places, refs #2444
  • added caching to routing, based on work by Bastian and Sebastian, fixes #1791
  • the Router resolve()s in lowercase and matches case-insensitive now, refs #2237
TYPO3CR:
  • adjustments to Routes.yaml suggestion

History

#1 Updated by Karsten Dambekalns over 6 years ago

  • Tracker changed from Bug to Task

#2 Updated by Karsten Dambekalns over 6 years ago

  • Status changed from New to Needs Feedback
  • Assigned To set to Sebastian Kurfuerst

Hi, is this done or is there still something missing?

#3 Updated by Sebastian Kurfuerst over 6 years ago

  • Status changed from Needs Feedback to Rejected

It is not really "fixed", but I think we should not change it from the way it is now. I think it is better to have the controllerObjectNamePattern in the request and build the "controllerObjectName" on the fly.

Greets,
Sebastian

Also available in: Atom PDF