您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

65 行
1.7KB

  1. <?php
  2. namespace Lc\SovBundle\Container\Setting;
  3. use App\Entity\Setting\SiteSetting;
  4. use Lc\SovBundle\Definition\SiteSettingDefinition;
  5. use Lc\SovBundle\Factory\Setting\SiteSettingFactory;
  6. use Lc\SovBundle\Repository\Setting\SiteSettingRepositoryQuery;
  7. use Lc\SovBundle\Repository\Setting\SiteSettingStore;
  8. use Lc\SovBundle\Solver\Setting\SettingSolver;
  9. class SiteSettingContainer
  10. {
  11. protected SiteSettingFactory $factory;
  12. protected SiteSettingDefinition $definition;
  13. protected SiteSettingRepositoryQuery $repositoryQuery;
  14. protected SiteSettingStore $store;
  15. protected SettingSolver $settingSolver;
  16. public function __construct(
  17. SiteSettingFactory $factory,
  18. SiteSettingDefinition $definition,
  19. SiteSettingRepositoryQuery $repositoryQuery,
  20. SiteSettingStore $store,
  21. SettingSolver $settingSolver
  22. ) {
  23. $this->factory = $factory;
  24. $this->definition = $definition;
  25. $this->repositoryQuery = $repositoryQuery;
  26. $this->store = $store;
  27. $this->settingSolver = $settingSolver;
  28. }
  29. public static function getEntityFqcn()
  30. {
  31. return SiteSetting::class;
  32. }
  33. public function getFactory(): SiteSettingFactory
  34. {
  35. return $this->factory;
  36. }
  37. public function getDefinition(): SiteSettingDefinition
  38. {
  39. return $this->definition;
  40. }
  41. public function getRepositoryQuery(): SiteSettingRepositoryQuery
  42. {
  43. return $this->repositoryQuery;
  44. }
  45. public function getStore(): SiteSettingStore
  46. {
  47. return $this->store;
  48. }
  49. public function getSettingSolver(): SettingSolver
  50. {
  51. return $this->settingSolver;
  52. }
  53. }