@@ -132,7 +132,7 @@ public function index(AdminContext $context)
132132 throw new ForbiddenActionException ($ context );
133133 }
134134
135- $ fields = FieldCollection:: new ($ this ->configureFields (Crud::PAGE_INDEX ));
135+ $ fields = new FieldCollection ($ this ->configureFields (Crud::PAGE_INDEX ));
136136 $ filters = $ this ->container ->get (FilterFactory::class)->create ($ context ->getCrud ()->getFiltersConfig (), $ fields , $ context ->getEntity ());
137137 $ queryBuilder = $ this ->createIndexQueryBuilder ($ context ->getSearch (), $ context ->getEntity (), $ fields , $ filters );
138138 $ paginator = $ this ->container ->get (PaginatorFactory::class)->create ($ queryBuilder );
@@ -147,7 +147,7 @@ public function index(AdminContext $context)
147147
148148 $ entities = $ this ->container ->get (EntityFactory::class)->createCollection ($ context ->getEntity (), $ paginator ->getResults ());
149149 $ this ->container ->get (FieldFactory::class)->processFieldsForAll ($ entities , $ fields , Crud::PAGE_INDEX );
150- $ processedFields = $ entities ->first ()?->getFields() ?? FieldCollection:: new ([]);
150+ $ processedFields = $ entities ->first ()?->getFields() ?? new FieldCollection ([]);
151151 $ context ->getCrud ()->setFieldAssets ($ this ->getFieldAssets ($ processedFields ));
152152 $ actions = $ this ->container ->get (ActionFactory::class)->processGlobalActionsAndEntityActionsForAll ($ entities , $ context ->getCrud ()->getActionsConfig ());
153153
@@ -186,7 +186,7 @@ public function detail(AdminContext $context)
186186 throw new InsufficientEntityPermissionException ($ context );
187187 }
188188
189- $ this ->container ->get (FieldFactory::class)->processFields ($ context ->getEntity (), FieldCollection:: new ($ this ->configureFields (Crud::PAGE_DETAIL )), Crud::PAGE_DETAIL );
189+ $ this ->container ->get (FieldFactory::class)->processFields ($ context ->getEntity (), new FieldCollection ($ this ->configureFields (Crud::PAGE_DETAIL )), Crud::PAGE_DETAIL );
190190 $ context ->getCrud ()->setFieldAssets ($ this ->getFieldAssets ($ context ->getEntity ()->getFields ()));
191191 $ this ->container ->get (ActionFactory::class)->processEntityActions ($ context ->getEntity (), $ context ->getCrud ()->getActionsConfig ());
192192
@@ -221,7 +221,7 @@ public function edit(AdminContext $context)
221221 throw new InsufficientEntityPermissionException ($ context );
222222 }
223223
224- $ this ->container ->get (FieldFactory::class)->processFields ($ context ->getEntity (), FieldCollection:: new ($ this ->configureFields (Crud::PAGE_EDIT )), Crud::PAGE_EDIT );
224+ $ this ->container ->get (FieldFactory::class)->processFields ($ context ->getEntity (), new FieldCollection ($ this ->configureFields (Crud::PAGE_EDIT )), Crud::PAGE_EDIT );
225225 $ context ->getCrud ()->setFieldAssets ($ this ->getFieldAssets ($ context ->getEntity ()->getFields ()));
226226 $ this ->container ->get (ActionFactory::class)->processEntityActions ($ context ->getEntity (), $ context ->getCrud ()->getActionsConfig ());
227227 /** @var TEntity $entityInstance */
@@ -307,7 +307,7 @@ public function new(AdminContext $context)
307307 /** @var class-string<TEntity> $entityFqcn */
308308 $ entityFqcn = $ context ->getEntity ()->getFqcn ();
309309 $ context ->getEntity ()->setInstance ($ this ->createEntity ($ entityFqcn ));
310- $ this ->container ->get (FieldFactory::class)->processFields ($ context ->getEntity (), FieldCollection:: new ($ this ->configureFields (Crud::PAGE_NEW )), Crud::PAGE_NEW );
310+ $ this ->container ->get (FieldFactory::class)->processFields ($ context ->getEntity (), new FieldCollection ($ this ->configureFields (Crud::PAGE_NEW )), Crud::PAGE_NEW );
311311 $ context ->getCrud ()->setFieldAssets ($ this ->getFieldAssets ($ context ->getEntity ()->getFields ()));
312312 $ this ->container ->get (ActionFactory::class)->processEntityActions ($ context ->getEntity (), $ context ->getCrud ()->getActionsConfig ());
313313
@@ -469,7 +469,7 @@ public function batchDelete(AdminContext $context, BatchActionDto $batchActionDt
469469
470470 public function autocomplete (AdminContext $ context ): JsonResponse
471471 {
472- $ queryBuilder = $ this ->createIndexQueryBuilder ($ context ->getSearch (), $ context ->getEntity (), FieldCollection:: new ([]), FilterCollection:: new ());
472+ $ queryBuilder = $ this ->createIndexQueryBuilder ($ context ->getSearch (), $ context ->getEntity (), new FieldCollection ([]), new FilterCollection ());
473473
474474 $ autocompleteContext = $ context ->getRequest ()->query ->all (AssociationField::PARAM_AUTOCOMPLETE_CONTEXT );
475475
@@ -482,7 +482,7 @@ public function autocomplete(AdminContext $context): JsonResponse
482482 $ controller = $ this ->container ->get (ControllerFactory::class)->getCrudControllerInstance ($ crudControllerFqcn , Action::INDEX , $ context ->getRequest ());
483483 $ originatingPage = $ autocompleteContext ['originatingPage ' ];
484484 $ propertyName = $ autocompleteContext ['propertyName ' ];
485- $ fields = FieldCollection:: new ($ controller ->configureFields ($ originatingPage ));
485+ $ fields = new FieldCollection ($ controller ->configureFields ($ originatingPage ));
486486
487487 // find the first field with matching property that is displayed on the originating page;
488488 // this ensures we get the correct field when a controller defines more than one field for the
@@ -526,7 +526,7 @@ public function createIndexQueryBuilder(SearchDto $searchDto, EntityDto $entityD
526526
527527 public function renderFilters (AdminContext $ context ): KeyValueStore
528528 {
529- $ fields = FieldCollection:: new ($ this ->configureFields (Crud::PAGE_INDEX ));
529+ $ fields = new FieldCollection ($ this ->configureFields (Crud::PAGE_INDEX ));
530530 $ this ->container ->get (FieldFactory::class)->processFields ($ context ->getEntity (), $ fields , Crud::PAGE_INDEX );
531531 $ filters = $ this ->container ->get (FilterFactory::class)->create ($ context ->getCrud ()->getFiltersConfig (), $ context ->getEntity ()->getFields (), $ context ->getEntity ());
532532
0 commit comments