Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 10 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| WaypointCrudController | |
0.00% |
0 / 10 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| getEntityFqcn | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| configureFields | |
0.00% |
0 / 9 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace App\Controller\Admin; |
| 6 | |
| 7 | use Override; |
| 8 | use App\Entity\Waypoint; |
| 9 | use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController; |
| 10 | use EasyCorp\Bundle\EasyAdminBundle\Field\Field; |
| 11 | use EasyCorp\Bundle\EasyAdminBundle\Field\IdField; |
| 12 | |
| 13 | /** |
| 14 | * @extends AbstractCrudController<Waypoint> |
| 15 | */ |
| 16 | class WaypointCrudController extends AbstractCrudController |
| 17 | { |
| 18 | public static function getEntityFqcn(): string |
| 19 | { |
| 20 | return Waypoint::class; |
| 21 | } |
| 22 | |
| 23 | #[Override] |
| 24 | public function configureFields(string $pageName): iterable |
| 25 | { |
| 26 | return [ |
| 27 | IdField::new('id') |
| 28 | ->onlyOnIndex(), |
| 29 | Field::new('name'), |
| 30 | Field::new('lat'), |
| 31 | Field::new('lon'), |
| 32 | Field::new('guid'), |
| 33 | Field::new('image'), |
| 34 | ]; |
| 35 | } |
| 36 | } |