You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

EntryAdminController.php 679B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Lc\PietroBundle\Controller\Workshop;
  3. use Lc\PietroBundle\Controller\AbstractAdminController;
  4. use Lc\SovBundle\Repository\RepositoryQueryInterface;
  5. abstract class EntryAdminController extends AbstractAdminController
  6. {
  7. public function createEntity(string $entityFqcn)
  8. {
  9. return $this->getEntryContainer()->getFactory()->create();
  10. }
  11. public function getRepositoryQuery(): RepositoryQueryInterface
  12. {
  13. return $this->getEntryContainer()->getRepositoryQuery();
  14. }
  15. public function configureFields(string $pageName): iterable
  16. {
  17. return $this->getEntryContainer()->getFieldDefinition()->getFields($pageName);
  18. }
  19. }