Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | 355 | public function defineSingletons(): array |
|
29 | { |
||
30 | 355 | $httpRequest = $this->binder->getBinder(Spiral::HttpRequest); |
|
|
|||
31 | 355 | $httpRequest->bindSingleton(PaginationFactory::class, PaginationFactory::class); |
|
32 | 355 | $httpRequest->bindSingleton(PaginationProviderInterface::class, PaginationFactory::class); |
|
33 | |||
34 | 355 | $this->binder->bind( |
|
35 | 355 | PaginationProviderInterface::class, |
|
36 | 355 | new DeprecationProxy(PaginationProviderInterface::class, true, Spiral::HttpRequest, '4.0') |
|
37 | 355 | ); |
|
38 | |||
39 | 355 | return []; |
|
40 | } |
||
42 |