File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 43
43
return new Slim \Http \Environment ($ _SERVER );
44
44
},
45
45
46
- 'request ' => factory ( function (ContainerInterface $ c ) {
46
+ 'request ' => function (ContainerInterface $ c ) {
47
47
return Request::createFromEnvironment ($ c ->get ('environment ' ));
48
- })-> scope (Scope:: SINGLETON ) ,
49
- 'response ' => factory ( function (ContainerInterface $ c ) {
48
+ },
49
+ 'response ' => function (ContainerInterface $ c ) {
50
50
$ headers = new Headers (['Content-Type ' => 'text/html; charset=UTF-8 ' ]);
51
51
$ response = new Response (200 , $ headers );
52
52
return $ response ->withProtocolVersion ($ c ->get ('settings ' )['httpVersion ' ]);
53
- })-> scope (Scope:: SINGLETON ) ,
53
+ },
54
54
55
55
'foundHandler ' => object (ControllerInvoker::class)
56
56
->constructor (get ('foundHandler.invoker ' )),
You can’t perform that action at this time.
0 commit comments