Skip to content

Commit

Permalink
mathielen#7 StorageSelection must contain a callable or an extended c…
Browse files Browse the repository at this point in the history
…allable (with arguments) as impl

fix
  • Loading branch information
Anton U committed Jul 14, 2017
1 parent a1d0b4b commit 1286cd4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1286cd4

Please sign in to comment.