@ -29,8 +29,16 @@ class ControllerCommand extends AbstractBaseCommand
public function execute(string $controller)
public function execute(string $controller)
{
{
$io = $this->app()->io();
$io = $this->app()->io();
if (isset($this->config['app_root']) === false) {
$io->error('app_root not set in .runway-config.json', true);
if (empty($this->config['runway'])) {
$io->warn('Using a .runway-config.json file is deprecated. Move your config values to app/config/config.php with `php runway config:migrate`.', true); // @codeCoverageIgnore
@ -41,16 +41,21 @@ class RouteCommand extends AbstractBaseCommand
{
{
$io = $this->app()->io();
$io = $this->app()->io();
if (isset($this->config['index_root']) === false) {
if (empty($this->config['runway'])) {
$io->error('index_root not set in .runway-config.json', true);
$io->warn('Using a .runway-config.json file is deprecated. Move your config values to app/config/config.php with `php runway config:migrate`.', true); // @codeCoverageIgnore
* @return array<string,UploadedFile|array<int,UploadedFile>> Key is field name; value is either a single UploadedFile or an array of UploadedFile when multiple were uploaded.
* @return array<string,UploadedFile|array<int,UploadedFile>> Key is field name; value is either a single UploadedFile or an array of UploadedFile when multiple were uploaded.