| @@ 89-100 (lines=12) @@ | ||
| 86 | * |
|
| 87 | * @return mixed |
|
| 88 | */ |
|
| 89 | public function __call($method, array $arguments) |
|
| 90 | { |
|
| 91 | try { |
|
| 92 | return $this->invokePlugin($method, $arguments, $this); |
|
| 93 | } catch (PluginNotFoundException $e) { |
|
| 94 | throw new BadMethodCallException( |
|
| 95 | 'Call to undefined method ' |
|
| 96 | . get_class($this) |
|
| 97 | . '::' . $method |
|
| 98 | ); |
|
| 99 | } |
|
| 100 | } |
|
| 101 | ||
| 102 | ||
| 103 | ||
| @@ 80-91 (lines=12) @@ | ||
| 77 | * |
|
| 78 | * @return mixed |
|
| 79 | */ |
|
| 80 | public function __call($method, array $arguments) |
|
| 81 | { |
|
| 82 | try { |
|
| 83 | return $this->invokePlugin($method, $arguments, $this); |
|
| 84 | } catch (PluginNotFoundException $e) { |
|
| 85 | throw new BadMethodCallException( |
|
| 86 | 'Call to undefined method ' |
|
| 87 | . get_class($this) |
|
| 88 | . '::' . $method |
|
| 89 | ); |
|
| 90 | } |
|
| 91 | } |
|
| 92 | } |
|
| 93 | ||