| @@ 330-342 (lines=13) @@ | ||
| 327 | /** |
|
| 328 | * @return ProductStreamService |
|
| 329 | */ |
|
| 330 | private function createProductStreamService() |
|
| 331 | { |
|
| 332 | /** @var ProductStreamAttributeRepository $streamAttrRepository */ |
|
| 333 | $streamAttrRepository = $this->modelManager->getRepository('Shopware\CustomModels\Connect\ProductStreamAttribute'); |
|
| 334 | ||
| 335 | return new ProductStreamService( |
|
| 336 | new ProductStreamRepository($this->modelManager, $this->container->get('shopware_product_stream.repository')), |
|
| 337 | $streamAttrRepository, |
|
| 338 | new Config($this->modelManager), |
|
| 339 | $this->container->get('shopware_search.product_search'), |
|
| 340 | $this->container->get('shopware_storefront.context_service') |
|
| 341 | ); |
|
| 342 | } |
|
| 343 | } |
|
| 344 | ||
| @@ 87-99 (lines=13) @@ | ||
| 84 | /** |
|
| 85 | * @return ProductStreamService |
|
| 86 | */ |
|
| 87 | public function onProductStreamService() |
|
| 88 | { |
|
| 89 | /** @var ProductStreamAttributeRepository $streamAttrRepository */ |
|
| 90 | $streamAttrRepository = $this->manager->getRepository(ProductStreamAttribute::class); |
|
| 91 | ||
| 92 | return new ProductStreamService( |
|
| 93 | new ProductStreamRepository($this->manager, $this->container->get('shopware_product_stream.repository')), |
|
| 94 | $streamAttrRepository, |
|
| 95 | new Config($this->manager), |
|
| 96 | $this->container->get('shopware_search.product_search'), |
|
| 97 | $this->container->get('shopware_storefront.context_service') |
|
| 98 | ); |
|
| 99 | } |
|
| 100 | ||
| 101 | /** |
|
| 102 | * @return MenuService |
|