| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | public function __invoke(Request $request): Response |
||
| 49 | { |
||
| 50 | $resource = $this->productRepository->findByNamePart($request->get('phrase', '')); |
||
| 51 | |||
| 52 | $view = View::create($resource); |
||
| 53 | |||
| 54 | $this->viewHandler->setExclusionStrategyGroups(['Autocomplete']); |
||
| 55 | |||
| 56 | $view->getContext()->enableMaxDepth(); |
||
| 57 | |||
| 58 | return $this->viewHandler->handle($view); |
||
| 59 | } |
||
| 60 | } |
||
| 61 |