mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 23:04:58 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -36,24 +36,8 @@ use function reset;
|
||||
*/
|
||||
class SearchController extends AbstractController
|
||||
{
|
||||
protected PaginatorFactory $paginatorFactory;
|
||||
|
||||
protected SearchApi $searchApi;
|
||||
|
||||
protected SearchProvider $searchProvider;
|
||||
|
||||
protected TranslatorInterface $translator;
|
||||
|
||||
public function __construct(
|
||||
SearchProvider $searchProvider,
|
||||
TranslatorInterface $translator,
|
||||
PaginatorFactory $paginatorFactory,
|
||||
SearchApi $searchApi
|
||||
) {
|
||||
$this->searchProvider = $searchProvider;
|
||||
$this->translator = $translator;
|
||||
$this->paginatorFactory = $paginatorFactory;
|
||||
$this->searchApi = $searchApi;
|
||||
public function __construct(protected SearchProvider $searchProvider, protected TranslatorInterface $translator, protected PaginatorFactory $paginatorFactory, protected SearchApi $searchApi)
|
||||
{
|
||||
}
|
||||
|
||||
public function advancedSearchAction($name, Request $request)
|
||||
@@ -64,7 +48,7 @@ class SearchController extends AbstractController
|
||||
/** @var Chill\MainBundle\Search\HasAdvancedSearchFormInterface $variable */
|
||||
$search = $this->searchProvider
|
||||
->getHasAdvancedFormByName($name);
|
||||
} catch (\Chill\MainBundle\Search\UnknowSearchNameException $e) {
|
||||
} catch (\Chill\MainBundle\Search\UnknowSearchNameException) {
|
||||
throw $this->createNotFoundException('no advanced search for '
|
||||
. "{$name}");
|
||||
}
|
||||
|
Reference in New Issue
Block a user