daib17 /
forecast
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Configuration file to create MyCurl as $di service. |
||
| 4 | */ |
||
| 5 | return [ |
||
| 6 | |||
| 7 | // Services to add to the container. |
||
| 8 | "services" => [ |
||
| 9 | "mycurl" => [ |
||
| 10 | "shared" => true, |
||
| 11 | //"callback" => "\Anax\Response\Response", |
||
| 12 | "callback" => function () { |
||
| 13 | $obj = new \daib17\Model\MyCurl(); |
||
| 14 | $obj->setDI($this); |
||
|
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
Loading history...
|
|||
| 15 | return $obj; |
||
| 16 | } |
||
| 17 | ], |
||
| 18 | ], |
||
| 19 | ]; |
||
| 20 |