| @@ 337-349 (lines=13) @@ | ||
| 334 | /** |
|
| 335 | * @return ProductStreamService |
|
| 336 | */ |
|
| 337 | private function createProductStreamService() |
|
| 338 | { |
|
| 339 | /** @var ProductStreamAttributeRepository $streamAttrRepository */ |
|
| 340 | $streamAttrRepository = $this->modelManager->getRepository('Shopware\CustomModels\Connect\ProductStreamAttribute'); |
|
| 341 | ||
| 342 | return new ProductStreamService( |
|
| 343 | new ProductStreamRepository($this->modelManager, $this->container->get('shopware_product_stream.repository')), |
|
| 344 | $streamAttrRepository, |
|
| 345 | new Config($this->modelManager), |
|
| 346 | $this->container->get('shopware_search.product_search'), |
|
| 347 | $this->container->get('shopware_storefront.context_service') |
|
| 348 | ); |
|
| 349 | } |
|
| 350 | } |
|
| 351 | ||
| @@ 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 |
|