File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 17
17
"php" : " ~5.6|~7.0" ,
18
18
"php-di/php-di" : " ^5.2.0" ,
19
19
"php-di/invoker" : " ^1.2.0" ,
20
- "slim/slim" : " ^3.0 .0"
20
+ "slim/slim" : " ^3.2 .0"
21
21
},
22
22
"require-dev" : {
23
23
"phpunit/phpunit" : " ~5.1"
Original file line number Diff line number Diff line change 3
3
use DI \Bridge \Slim \CallableResolver ;
4
4
use DI \Bridge \Slim \ControllerInvoker ;
5
5
use DI \Container ;
6
- use DI \Scope ;
7
6
use Interop \Container \ContainerInterface ;
8
7
use Invoker \Invoker ;
9
8
use Invoker \ParameterResolver \AssociativeArrayResolver ;
37
36
'router ' => object (Slim \Router::class),
38
37
'errorHandler ' => object (Slim \Handlers \Error::class)
39
38
->constructor (get ('settings.displayErrorDetails ' )),
39
+ 'phpErrorHandler ' => object (Slim \Handlers \PhpError::class)
40
+ ->constructor (get ('settings.displayErrorDetails ' )),
40
41
'notFoundHandler ' => object (Slim \Handlers \NotFound::class),
41
42
'notAllowedHandler ' => object (Slim \Handlers \NotAllowed::class),
42
43
'environment ' => function () {
43
44
return new Slim \Http \Environment ($ _SERVER );
44
45
},
45
-
46
46
'request ' => function (ContainerInterface $ c ) {
47
47
return Request::createFromEnvironment ($ c ->get ('environment ' ));
48
48
},
51
51
$ response = new Response (200 , $ headers );
52
52
return $ response ->withProtocolVersion ($ c ->get ('settings ' )['httpVersion ' ]);
53
53
},
54
-
55
54
'foundHandler ' => object (ControllerInvoker::class)
56
55
->constructor (get ('foundHandler.invoker ' )),
57
56
'foundHandler.invoker ' => function (ContainerInterface $ c ) {
You can’t perform that action at this time.
0 commit comments