Feature #310

Find a way to simplify setter injection in ActionController (and elsewhere)

Added by Robert Lemke over 13 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
Category:
MVC
Target version:
-
Start date:
2008-02-14
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

Currently we need to write a setter method for all dependencies of an ActionController. The constructor can't be used for DI because it is needed by the base class.

This is a very tedious and repetitive task which could be simplified by just declaring the dependency and get them setter injected automatically.

Also available in: Atom PDF