Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added DI todo

- Added a TODO file for the DI component
  • Loading branch information...
commit 927c3d16c6ca8cb5421bde9a1271da5f46624f0c 1 parent f0b982b
@weierophinney weierophinney authored
Showing with 31 additions and 0 deletions.
  1. +31 −0 library/Zend/Di/TODO
View
31 library/Zend/Di/TODO
@@ -0,0 +1,31 @@
+- Ability to provide both class properties and method-specific parameters via
+ configuration (which solves disambiguation when multiple methods specify the
+ same parameter names)
+
+ Proposed solution:
+
+ array(
+ 'properties' => array(
+ 'Zend\Foo\Bar' => array(
+ 'public' => true,
+ 'methods' => array(
+ '__construct' => array(
+ 'params' => array(
+ 'foo' => 'bar',
+ ),
+ 'class' => 'Some\Default\Class'
+ ),
+ 'setConfig' => array(
+ 'params' => array(
+ 'bar' => 'baz',
+ ),
+ ),
+ ),
+ ),
+ ),
+ )
+
+- Ability to pass configuration to a generated ServiceLocator
+- Skip optional arguments if not passed in configuration or part of definition
+ (current behavior is to raise an exception if *any* arguments are missing)
+-
Please sign in to comment.
Something went wrong with that request. Please try again.