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.

SiteFactory.php 475B

3 年之前
3 年之前
3 年之前
3 年之前
1234567891011121314151617181920
  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. }