/** * @param callable $callable * @param mixed[] $parameters * @return mixed * @throws IoReadException */ public function call(callable $callable, $parameters = []) { try { return $this->container->call($callable, $parameters); } catch (Error $ex) { throw new IoReadException("Calling function with Container failed.", $ex); } catch (Exception $ex) { throw new IoReadException("Calling function with Container failed.", $ex); } }