Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class RequestsServiceProvider implements ServiceProviderInterface { |
||
20 | /** |
||
21 | * {@inheritDoc} |
||
22 | */ |
||
23 | public function register( $container ) { |
||
24 | $container[ WPEMERGE_REQUEST_KEY ] = function () { |
||
25 | return Request::fromGlobals(); |
||
26 | }; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * {@inheritDoc} |
||
31 | */ |
||
32 | public function bootstrap( $container ) { |
||
33 | // Nothing to bootstrap. |
||
34 | } |
||
36 |