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.

21 lines
571B

  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Site;
  3. use Lc\CaracoleBundle\Controller\AdminControllerTrait;
  4. use Lc\SovBundle\Controller\Site\PageAdminController as SovPageAdminController;
  5. abstract class PageAdminController extends SovPageAdminController
  6. {
  7. use AdminControllerTrait;
  8. public function createEntity(string $entityFqcn)
  9. {
  10. return $this->getPageContainer()
  11. ->getFactory()
  12. ->setMerchant($this->getMerchantCurrent())
  13. ->setSection($this->getSectionCurrent())
  14. ->create();
  15. }
  16. }