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
442B

  1. <?php
  2. namespace Lc\SovBundle\Factory\Site;
  3. use Lc\SovBundle\Container\Site\PageContainer;
  4. use Lc\SovBundle\Factory\AbstractFactory;
  5. use Lc\SovBundle\Model\Site\PageInterface;
  6. class PageFactory extends AbstractFactory implements PageFactoryInterface
  7. {
  8. public function create(): PageInterface
  9. {
  10. $class = PageContainer::getEntityFqcn();
  11. $page = new $class;
  12. $page->setStatus(1);
  13. return $page;
  14. }
  15. }