mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
936dcb691b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user