| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function __invoke(ContainerInterface $container) |
||
| 25 | { |
||
| 26 | // Create pagination object |
||
| 27 | $contactUsMapper = $container->get(ContactUsMapper::class); |
||
| 28 | $select = $contactUsMapper->getPaginationSelect(); |
||
| 29 | $pagination = new Paginator(( |
||
| 30 | new DbSelect( |
||
| 31 | $select, |
||
| 32 | $contactUsMapper->getAdapter(), |
||
| 33 | $contactUsMapper->getResultSetPrototype() |
||
| 34 | ) |
||
| 35 | )); |
||
| 36 | |||
| 37 | return new ContactUsService( |
||
| 38 | $container->get(ContactUsFilter::class), |
||
| 39 | $container->get(ContactUsMapper::class), |
||
| 40 | $pagination |
||
| 41 | ); |
||
| 42 | } |
||
| 43 | } |