FIX for #5299 Adding <code> blocks to Injector documentation.

This commit is contained in:
Patrick Nelson 2016-04-11 10:56:46 -07:00
parent 4ea0c92c3c
commit 707aa14c6c

View File

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