Routes:
$routes->cli('send-broadcast/ ( : segment)', 'BroadcastControl :: sendBroadcast/$1');
Trying to run the command:
php public/index.php send-broadcast "1"
get this error:
[TypeError]
Cannot assign CodeIgniter\HTTP\CLIRequest to property CodeIgniter\Security\Security::$request of type CodeIgniter\HTTP\IncomingRequest
May I know how to define the CLiRequest and how to I run the command using php code instead?