| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function __invoke(ContainerInterface $container) |
||
| 17 | { |
||
| 18 | $config = $container->get('config')['upload']; |
||
| 19 | $upload = new Upload($config['public_path'], $config['non_public_path']); |
||
| 20 | |||
| 21 | // Create pagination object |
||
| 22 | $pageMapper = $container->get(PageMapper::class); |
||
| 23 | $select = $pageMapper->getPaginationSelect(); |
||
| 24 | $paginationAdapter = new DbSelect($select, $pageMapper->getAdapter(), $pageMapper->getResultSetPrototype()); |
||
| 25 | $pagination = new Paginator($paginationAdapter); |
||
| 26 | |||
| 27 | return new PageService( |
||
| 28 | $container->get(PageFilter::class), |
||
| 29 | $pageMapper, |
||
| 30 | $pagination, |
||
| 31 | $upload |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |