New answers tagged

1

The problem is that this config file is for console commands as well as web requests. Console commands differ from web requests in that they don't have body parameters. For web requests, Craft::$app->request is an instance of craft\web\Request. But for console commands, it's an instance of craft\console\Request. This one doesn't have the getBodyParam ...


Top 50 recent answers are included