for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Admin;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
use Sonata\Form\Type\DateTimePickerType;
final class RepertoireSeasonAdmin extends AbstractAdmin
{
protected function configureDatagridFilters(DatagridMapper $datagridMapper): void
$datagridMapper
->add('id')
->add('startDate')
->add('endDate')
->add('number')
;
}
protected function configureListFields(ListMapper $listMapper): void
$listMapper
->add('_action', null, [
'actions' => [
'show' => [],
'edit' => [],
'delete' => [],
],
]);
protected function configureFormFields(FormMapper $formMapper): void
$formMapper
->add('startDate', DateTimePickerType::class)
->add('endDate', DateTimePickerType::class)
protected function configureShowFields(ShowMapper $showMapper): void
$showMapper