選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

SectionSettingContainer.php 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Setting;
  3. use App\Entity\Setting\SectionSetting;
  4. use Lc\CaracoleBundle\Definition\SectionSettingDefinition;
  5. use Lc\CaracoleBundle\Factory\Setting\SectionSettingFactory;
  6. use Lc\CaracoleBundle\Repository\Setting\SectionSettingRepositoryQuery;
  7. use Lc\CaracoleBundle\Repository\Setting\SectionSettingStore;
  8. use Lc\SovBundle\Solver\Setting\SettingSolver;
  9. class SectionSettingContainer
  10. {
  11. protected SectionSettingFactory $factory;
  12. protected SectionSettingDefinition $definition;
  13. protected SectionSettingRepositoryQuery $repositoryQuery;
  14. protected SectionSettingStore $store;
  15. protected SettingSolver $settingSolver;
  16. public function __construct(
  17. SectionSettingFactory $factory,
  18. SectionSettingDefinition $definition,
  19. SectionSettingRepositoryQuery $repositoryQuery,
  20. SectionSettingStore $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 SectionSetting::class;
  32. }
  33. public function getFactory(): SectionSettingFactory
  34. {
  35. return $this->factory;
  36. }
  37. public function getDefinition(): SectionSettingDefinition
  38. {
  39. return $this->definition;
  40. }
  41. public function getRepositoryQuery(): SectionSettingRepositoryQuery
  42. {
  43. return $this->repositoryQuery;
  44. }
  45. public function getStore(): SectionSettingStore
  46. {
  47. $this->store->resetContext();
  48. return $this->store;
  49. }
  50. public function getSettingSolver(): SettingSolver
  51. {
  52. return $this->settingSolver;
  53. }
  54. }