mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6822 from micmania1/patch-12
DOCS Fixed namespace for factory
This commit is contained in:
commit
f216855850
@ -156,7 +156,7 @@ An example using the `MyFactory` service to create instances of the `MyService`
|
|||||||
:::php
|
:::php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class MyFactory implements SilverStripe\Framework\Injector\Factory {
|
class MyFactory implements SilverStripe\Core\Injector\Factory {
|
||||||
|
|
||||||
public function create($service, array $params = array()) {
|
public function create($service, array $params = array()) {
|
||||||
return new MyServiceImplementation();
|
return new MyServiceImplementation();
|
||||||
|
Loading…
Reference in New Issue
Block a user