Feature #3302

Implement a "Controller Context"

Added by Robert Lemke over 10 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Must have
Category:
MVC
Start date:
2009-05-14
Due date:
% Done:

100%

PHP Version:
Has patch:
Complexity:

Description

We need a new class "ControllerContext" which contains contextual information about a controller:

  • the request object
  • the response object
  • arguments
  • argumentsMappingResults
  • the URI Builder instance

The ControllerContext is a property of the AbstractController.

ActionController->initializeView() should inject the ControllerContext into the view. The request should not be injected anymore (therefore the view needs to be refactored).

Associated revisions

Revision c3377e03 (diff)
Added by Christopher Hlubek over 10 years ago

Fixes #3302: implementing a Controller Context except for adding the URIhelper

History

#1 Updated by Robert Lemke over 10 years ago

Also remove $packageKey from AbstractConctroller - use $request->getControllerPackageKey instead.

#2 Updated by Christopher Hlubek over 10 years ago

  • Assignee changed from Sebastian Kurfuerst to Christopher Hlubek

#3 Updated by Christopher Hlubek over 10 years ago

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

Applied in changeset r2225.

Also available in: Atom PDF