Skip to content

Commit

Permalink
TE-5961 Refactored all ContainerInterface array access to setter.
Browse files Browse the repository at this point in the history
  • Loading branch information
stereomon committed May 29, 2020
1 parent 1827a59 commit fa1fc04
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public function provideDependencies(Container $container)
*/
protected function addUrlStorageClient(Container $container): Container
{
$container[static::CLIENT_URL_STORAGE] = function (Container $container) {
$container->set(static::CLIENT_URL_STORAGE, function (Container $container) {
return new StorageRouterToUrlStorageClientBridge($container->getLocator()->urlStorage()->client());
};
});

return $container;
}
Expand All @@ -53,9 +53,9 @@ protected function addUrlStorageClient(Container $container): Container
*/
protected function addResourceCreatorPlugins(Container $container): Container
{
$container[static::PLUGIN_RESOURCE_CREATORS] = function () {
$container->set(static::PLUGIN_RESOURCE_CREATORS, function () {
return $this->getResourceCreatorPlugins();
};
});

return $container;
}
Expand Down

0 comments on commit fa1fc04

Please sign in to comment.