| @@ 77-89 (lines=13) @@ | ||
| 74 | /** |
|
| 75 | * @return ProductStreamService |
|
| 76 | */ |
|
| 77 | public function onProductStreamService() |
|
| 78 | { |
|
| 79 | /** @var ProductStreamAttributeRepository $streamAttrRepository */ |
|
| 80 | $streamAttrRepository = $this->manager->getRepository('Shopware\CustomModels\Connect\ProductStreamAttribute'); |
|
| 81 | ||
| 82 | return new ProductStreamService( |
|
| 83 | new ProductStreamRepository($this->manager, $this->container->get('shopware_product_stream.repository')), |
|
| 84 | $streamAttrRepository, |
|
| 85 | new Config($this->manager), |
|
| 86 | $this->container->get('shopware_search.product_search'), |
|
| 87 | $this->container->get('shopware_storefront.context_service') |
|
| 88 | ); |
|
| 89 | } |
|
| 90 | ||
| 91 | /** |
|
| 92 | * @return MenuService |
|
| @@ 349-361 (lines=13) @@ | ||
| 346 | /** |
|
| 347 | * @return ProductStreamService |
|
| 348 | */ |
|
| 349 | private function createProductStreamService() |
|
| 350 | { |
|
| 351 | /** @var ProductStreamAttributeRepository $streamAttrRepository */ |
|
| 352 | $streamAttrRepository = $this->modelManager->getRepository('Shopware\CustomModels\Connect\ProductStreamAttribute'); |
|
| 353 | ||
| 354 | return new ProductStreamService( |
|
| 355 | new ProductStreamRepository($this->modelManager, $this->container->get('shopware_product_stream.repository')), |
|
| 356 | $streamAttrRepository, |
|
| 357 | new Config($this->modelManager), |
|
| 358 | $this->container->get('shopware_search.product_search'), |
|
| 359 | $this->container->get('shopware_storefront.context_service') |
|
| 360 | ); |
|
| 361 | } |
|
| 362 | } |
|
| 363 | ||