src/Controller/CoreController.php
public function searchAction(Request $request)
    {
        $searchAction = $this->container->get(SearchAction::class);

        return $searchAction($request);
    }
public function searchAction(Request $request)
    {
        $searchAction = $this->container->get(SearchAction::class);

        return $searchAction($request);
    }
public function searchAction ( Request $ request ) { $ searchAction = $ this -> container -> get ( SearchAction :: class ) ; return $ searchAction ( $ request ) ; }
The search action first render an empty page, if the query is set, then the template generates
some ajax request to retrieve results for each admin. The Ajax query returns a JSON response.

@throws \RuntimeException

@return JsonResponse|Response
The search action first render an empty page if the query is set then the template generates some ajax request to retrieve results for each admin . The Ajax query returns a JSON response .