We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 489c2bf + 2523083 commit 8492d9fCopy full SHA for 8492d9f
1 file changed
system/CodeIgniter.php
@@ -838,13 +838,16 @@ protected function createController()
838
*/
839
protected function runController($class)
840
{
841
+ // If this is a console request then use the input segments as parameters
842
+ $params = defined('SPARKED') ? $this->request->getSegments() : $this->router->params();
843
+
844
if (method_exists($class, '_remap'))
845
- $output = $class->_remap($this->method, ...$this->router->params());
846
+ $output = $class->_remap($this->method, ...$params);
847
}
848
else
849
- $output = $class->{$this->method}(...$this->router->params());
850
+ $output = $class->{$this->method}(...$params);
851
852
853
$this->benchmark->stop('controller');
0 commit comments