We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee30dea commit 67c051bCopy full SHA for 67c051b
src/Console.php
@@ -149,6 +149,26 @@ protected function doExecute()
149
// Please override this method.
150
}
151
152
+ /**
153
+ * delegate
154
+ *
155
+ * @param string $method
156
157
+ * @return mixed
158
+ */
159
+ protected function delegate($method)
160
+ {
161
+ $args = func_get_args();
162
+ array_shift($args);
163
+
164
+ if (!is_callable(array($this, $method)))
165
166
+ throw new \LogicException(sprintf('Method: %s not found', $method));
167
+ }
168
169
+ return call_user_func_array(array($this, $method), $args);
170
171
172
/**
173
* getHelp
174
*
0 commit comments