argument('pkt')); $s = $this->argument('system') ? Zone::where('name',$this->argument('system'))->singleOrFail() : NULL; foreach (Packet::open($f,$s) as $msg) { // @todo Quick check that the packet should be processed by us. // @todo validate that the packet's zone is in the domain. $this->info(sprintf('Processing message from [%s] with msgid [%s]',$msg->fboss,$msg->msgid)); // Dispatch job. Job::dispatchSync($msg,$this->option('nobot')); } } }