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

  1. <?php
  2. namespace Lc\SovBundle\Factory\Site;
  3. use Lc\SovBundle\Container\Site\SiteContainer;
  4. use Lc\SovBundle\Factory\AbstractFactory;
  5. use Lc\SovBundle\Model\Site\SiteInterface;
  6. class SiteFactory extends AbstractFactory implements SiteFactoryInterface
  7. {
  8. public function create(string $devAlias = null): SiteInterface
  9. {
  10. $class = SiteContainer::getEntityFqcn();
  11. $site = new $class;
  12. $site->setDevAlias($devAlias);
  13. return $site;
  14. }
  15. }