From 4bcec878b2cca08ec754aa77bbb1f1092f029d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Klatt?= Date: Fri, 29 May 2020 13:08:37 +0000 Subject: [PATCH] TE-5961 Refactored all ContainerInterface array access to setter. --- .../NavigationCollectorDependencyProvider.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Spryker/Zed/NavigationCollector/NavigationCollectorDependencyProvider.php b/src/Spryker/Zed/NavigationCollector/NavigationCollectorDependencyProvider.php index cbbb799..41bb3c2 100644 --- a/src/Spryker/Zed/NavigationCollector/NavigationCollectorDependencyProvider.php +++ b/src/Spryker/Zed/NavigationCollector/NavigationCollectorDependencyProvider.php @@ -46,9 +46,9 @@ public function provideBusinessLayerDependencies(Container $container) */ protected function provideCollectorFacade(Container $container) { - $container[self::FACADE_COLLECTOR] = function (Container $container) { + $container->set(static::FACADE_COLLECTOR, function (Container $container) { return new NavigationCollectorToCollectorBridge($container->getLocator()->collector()->facade()); - }; + }); } /** @@ -58,9 +58,9 @@ protected function provideCollectorFacade(Container $container) */ protected function provideNavigationFacade(Container $container) { - $container[self::FACADE_NAVIGATION] = function (Container $container) { + $container->set(static::FACADE_NAVIGATION, function (Container $container) { return new NavigationCollectorToNavigationBridge($container->getLocator()->navigation()->facade()); - }; + }); } /** @@ -70,9 +70,9 @@ protected function provideNavigationFacade(Container $container) */ protected function provideDataReaderService(Container $container) { - $container[self::SERVICE_DATA_READER] = function (Container $container) { + $container->set(static::SERVICE_DATA_READER, function (Container $container) { return $container->getLocator()->utilDataReader()->service(); - }; + }); } /** @@ -82,8 +82,8 @@ protected function provideDataReaderService(Container $container) */ protected function provideTouchQueryContainer(Container $container) { - $container[self::QUERY_CONTAINER_TOUCH] = function (Container $container) { + $container->set(static::QUERY_CONTAINER_TOUCH, function (Container $container) { return $container->getLocator()->touch()->queryContainer(); - }; + }); } }