Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
27 | public function create( |
||
28 | LoaderInterface $loader, |
||
29 | MethodInvokerInterface $methodInvoker = null, |
||
30 | $exposeInternalExceptions = false |
||
31 | ) { |
||
32 | if (null === $methodInvoker) { |
||
33 | $methodInvoker = new MethodInvoker(); |
||
34 | } |
||
35 | |||
36 | return new Server( |
||
37 | new RequestParser(), |
||
38 | new MethodDispatcher($loader, new ArgumentMapper(new Normalizer()), $methodInvoker), |
||
39 | new ResponseSerializer(), |
||
40 | new ErrorResponseFactory($exposeInternalExceptions) |
||
41 | ); |
||
42 | } |
||
43 | } |
||
44 |