예제 #1
0
파일: Container.php 프로젝트: khelle/surume
 /**
  * @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);
     }
 }