Skip to content

Commit

Permalink
Added absolute links to the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Schindler committed Nov 1, 2011
1 parent 6ba3835 commit 5407f92
Showing 1 changed file with 44 additions and 21 deletions.
65 changes: 44 additions & 21 deletions README.md
Expand Up @@ -17,82 +17,105 @@ Example Index
Simple Constructor Injection. Object obtained from the container by
using the class name.

[ ✍ source](./example-01.php "Constructor Injection")
[ ✍ source][01]

### Example 02 - Interface Injection

Interface Injection via runtime definition.

[ ✍ source](./example-02.php "Interface Injection")
[ ✍ source][02]

### Example 03 - Setter Injection

Setter injection via runtime definition. The setter method has to be marked as such so that the container knows that the setter is non-optional.

[ ✍ source](./example-03.php "Setter Injection")
[ ✍ source][03]

### Example 04 - Configuration Parameters

Constructor injection with configuration parameters passed into the instance manager.

[ ✍ source](./example-04.php)
[ ✍ source][04]

### Example 05 - Call-time Parameters

Constructor injection with parameters passed into the containers `get()` method.

[ ✍ source](./example-05.php)
[ ✍ source][05]

### Example 06 - Setter Injection With Configuration

Setter injection with configuration. With this form of setter injection, the setter is originally optional, but since parameters that fulfill this method are passed into the configuration, the setter will be called.

[ ✍ source](./example-06.php)
[ ✍ source][06]

### Example 07 - Setter Injection With Call-time Parameters

setter-injection-with-calltime-params

[ ✍ source](./example-07.php)
[ ✍ source][07]

### Example 08 - Multiple Injections / Single Injection Point

multiple-injections-to-single-injection-point
The ability to inject objects/dependencies of the same type through a single injection point. This is sometimes called re-injection.

[ ✍ source](./example-08.php)
[ ✍ source][08]

### Example 09 - Setter Injection With Annotation

runtime-setter-injection-with-annotation
Setter injection specified by an annotation. By default, setters are identified but marked as optional. By using the Inject() annotation, this will mark the method as required.

[ ✍ source](./example-09.php)
[ ✍ source][09]

### Example 10 - Compiler Based Constructor Injection

compiler-constructor-injection
Compiler based constructor injection

[ ✍ source](./example-10.php)
[ ✍ source][10]

### Example 11 - Compiler Based Interface Injection

compiler-interface-injection
Compiler based interface injection

[ ✍ source](./example-11.php)
[ ✍ source][11]

### Example 12 - Compiled Based Setter Injection With Annotation

compiler-setter-injection-with-annotation
Compiler based setter injection using annotations.

[ ✍ source](./example-12.php)
[ ✍ source][12]

### Example 13 - Closure based dependency

[ ✍ source](./example-13.php)
The ability to specific a method that can be called to satisfy a dependency. This is useful when the dependency is not managed by the container, but perhaps by another container or some other outside system (service locator).

[ ✍ source][13]

### Example 14 - Disambiguation

[ ✍ source](./example-14.php)
When two methods have the same parameter signature, use the fully qualified name for the parameters instead of the given name.

[ ✍ source][14]

### Example 15 - Multiple Injection to Single Injection Point With Multiple Arguments

When a method must be called multiple times (sometimes called reinjection), and there are multiple values that need to be passed along with the dependency.

[ ✍ source][15]

### Example 15 - Multiple Injection Points / Multiple Arguments

[ ✍ source](./example-15.php)
[01]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-01.php
[02]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-02.php
[03]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-03.php
[04]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-04.php
[05]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-05.php
[06]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-06.php
[07]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-07.php
[08]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-08.php
[09]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-09.php
[10]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-10.php
[11]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-11.php
[12]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-12.php
[13]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-13.php
[14]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-14.php
[15]: https://github.com/ralphschindler/Zend_DI-Examples/blob/master/example-15.php

0 comments on commit 5407f92

Please sign in to comment.