| @@ 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 |
|
| @@ 287-299 (lines=13) @@ | ||
| 284 | /** |
|
| 285 | * @return ProductStreamService |
|
| 286 | */ |
|
| 287 | private function createProductStreamService() |
|
| 288 | { |
|
| 289 | /** @var ProductStreamAttributeRepository $streamAttrRepository */ |
|
| 290 | $streamAttrRepository = $this->modelManager->getRepository('Shopware\CustomModels\Connect\ProductStreamAttribute'); |
|
| 291 | ||
| 292 | return new ProductStreamService( |
|
| 293 | new ProductStreamRepository($this->modelManager, $this->container->get('shopware_product_stream.repository')), |
|
| 294 | $streamAttrRepository, |
|
| 295 | new Config($this->modelManager), |
|
| 296 | $this->container->get('shopware_search.product_search'), |
|
| 297 | $this->container->get('shopware_storefront.context_service') |
|
| 298 | ); |
|
| 299 | } |
|
| 300 | ||
| 301 | /** |
|
| 302 | * @return array |
|