Bug #3404

Refactor ControllerContext to be built only before passing it to the View

Added by Sebastian Kurfuerst over 12 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
MVC
Start date:
2009-05-21
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

$this->controllerContext should not be available in the Controller, but just be passed on to the View.

There is one question remaining: Should the URIHelper / URIBuilder get this whole object, or just the Request object?

Greets,
Sebastian

#1

Updated by Sebastian Kurfuerst over 12 years ago

  • Status changed from Accepted to New
#2

Updated by Bastian Waidelich over 12 years ago

  • Assignee changed from Sebastian Kurfuerst to Bastian Waidelich

We decided to rename setupControllerContext() to buildControllerContext(). The instance variable $controllerContext will be removed from AbstractController.

#3

Updated by Bastian Waidelich over 12 years ago

There is one question remaining: Should the URIHelper / URIBuilder
get this whole object, or just the Request object?

The URIBuilder does not contain the controllerContext. The controllerContext contains an instance of URIBuilder.

#4

Updated by Bastian Waidelich over 12 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2344.

Also available in: Atom PDF