From 1286cd43642070b7b688b935542475396e2a30f8 Mon Sep 17 00:00:00 2001 From: Anton U Date: Fri, 14 Jul 2017 18:15:14 +0300 Subject: [PATCH] #7 StorageSelection must contain a callable or an extended callable (with arguments) as impl fix --- .../ImportEngine/Storage/Provider/ServiceStorageProvider.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mathielen/ImportEngine/Storage/Provider/ServiceStorageProvider.php b/src/Mathielen/ImportEngine/Storage/Provider/ServiceStorageProvider.php index c117e17..9d06465 100644 --- a/src/Mathielen/ImportEngine/Storage/Provider/ServiceStorageProvider.php +++ b/src/Mathielen/ImportEngine/Storage/Provider/ServiceStorageProvider.php @@ -68,7 +68,10 @@ public function select($id = null) } $service = $this->container->get($serviceName); - $callable_with_arguments = array($service, $method, isset($id['arguments']) ? $id['arguments'] : null); + $callable_with_arguments = array($service, $method); + if(isset($id['arguments'])){ + $callable_with_arguments['arguments'] = $id['arguments']; + } return new StorageSelection($callable_with_arguments); }