Feature #3302

Implement a "Controller Context"

Added by Robert Lemke about 12 years ago. Updated over 10 years ago.

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

100%

Estimated time:
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).

#1

Updated by Robert Lemke about 12 years ago

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

#2

Updated by Christopher Hlubek about 12 years ago

  • Assignee changed from Sebastian Kurfuerst to Christopher Hlubek
#3

Updated by Christopher Hlubek about 12 years ago

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

Applied in changeset r2225.

Also available in: Atom PDF