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

59 行
1.4KB

  1. <?php
  2. namespace Lc\CaracoleBundle\Container\Section;
  3. use App\Entity\Section\Opening;
  4. use Lc\CaracoleBundle\Factory\Section\OpeningFactory;
  5. use Lc\CaracoleBundle\Repository\Section\OpeningRepositoryQuery;
  6. use Lc\CaracoleBundle\Repository\Section\OpeningStore;
  7. use Lc\CaracoleBundle\Resolver\OpeningResolver;
  8. class OpeningContainer
  9. {
  10. protected OpeningFactory $factory;
  11. protected OpeningResolver $resolver;
  12. protected OpeningRepositoryQuery $repositoryQuery;
  13. protected OpeningStore $store;
  14. public function __construct(
  15. OpeningFactory $factory,
  16. OpeningResolver $resolver,
  17. OpeningRepositoryQuery $repositoryQuery,
  18. OpeningStore $store
  19. ) {
  20. $this->factory = $factory;
  21. $this->resolver = $resolver;
  22. $this->repositoryQuery = $repositoryQuery;
  23. $this->store = $store;
  24. }
  25. public static function getEntityFqcn()
  26. {
  27. return Opening::class;
  28. }
  29. public function getFactory(): OpeningFactory
  30. {
  31. return $this->factory;
  32. }
  33. public function getResolver(): OpeningResolver
  34. {
  35. return $this->resolver;
  36. }
  37. public function getRepositoryQuery(): OpeningRepositoryQuery
  38. {
  39. return $this->repositoryQuery;
  40. }
  41. public function getStore(): OpeningStore
  42. {
  43. $this->store->resetContext();
  44. return $this->store;
  45. }
  46. }