mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX for #5299 Adding <code> blocks to Injector documentation.
This commit is contained in:
parent
4ea0c92c3c
commit
707aa14c6c
@ -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…
x
Reference in New Issue
Block a user