29 lines
684 B
PHP
29 lines
684 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Controller\Admin;
|
||
|
|
||
|
use App\Entity\Post;
|
||
|
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
|
||
|
use EasyCorp\Bundle\EasyAdminBundle\Field\IdField;
|
||
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextEditorField;
|
||
|
use EasyCorp\Bundle\EasyAdminBundle\Field\TextField;
|
||
|
|
||
|
class PostCrudController extends AbstractCrudController
|
||
|
{
|
||
|
public static function getEntityFqcn(): string
|
||
|
{
|
||
|
return Post::class;
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
public function configureFields(string $pageName): iterable
|
||
|
{
|
||
|
return [
|
||
|
IdField::new('id'),
|
||
|
TextField::new('title'),
|
||
|
TextEditorField::new('description'),
|
||
|
];
|
||
|
}
|
||
|
*/
|
||
|
}
|