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.

преди 3 години
преди 2 години
преди 3 години
преди 2 години
преди 3 години
преди 3 години
преди 3 години
преди 2 години
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. }