Merge pull request #5300 from patricknelson/issue-5299-injector-minor-doc

FIX for #5299 Adding <code> blocks to Injector documentation.
This commit is contained in:
Damian Mooyman 2016-04-18 11:56:21 +12:00
commit 936dcb691b

View File

@ -64,6 +64,7 @@ use SilverStripe\Framework\Injector\Factory;
*
* Specify a configuration array of the format
*
* <code>
* array(
* array(
* 'id' => 'BeanId', // the name to be used if diff from the filename
@ -96,6 +97,7 @@ use SilverStripe\Framework\Injector\Factory;
* // or simply
* 'OtherBean' => 'SomeClass',
* )
* </code>
*
* In addition to specifying the bindings directly in the configuration,
* you can simply create a publicly accessible property on the target