We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2adb88 commit 2523083Copy full SHA for 2523083
1 file changed
system/CodeIgniter.php
@@ -838,10 +838,8 @@ protected function createController()
838
*/
839
protected function runController($class)
840
{
841
- // If this is a CLI request then use the input segments as parameters
842
- $params = (is_cli() && ! (ENVIRONMENT === 'testing'))
843
- ? $this->request->getSegments()
844
- : $this->router->params();
+ // If this is a console request then use the input segments as parameters
+ $params = defined('SPARKED') ? $this->request->getSegments() : $this->router->params();
845
846
if (method_exists($class, '_remap'))
847
0 commit comments