Remove YII_ENV.

This commit is contained in:
Wilmer Arambula
2023-10-21 08:53:15 -03:00
parent b7488185ba
commit f58eb362ca
2 changed files with 41 additions and 11 deletions

View File

@ -86,11 +86,7 @@ class ServeController extends Controller
$command .= " -r \"{$router}\"";
}
if (YII_ENV === 'test') {
return true;
}
passthru($command);
$this->runCommand($command);
}
/**
@ -132,4 +128,9 @@ class ServeController extends Controller
fclose($fp);
return true;
}
protected function runCommand($command)
{
passthru($command);
}
}