Enable systems to configure their packet type
This commit is contained in:
@@ -650,8 +650,9 @@ class Address extends Model
|
||||
if (! $ao)
|
||||
return NULL;
|
||||
|
||||
// @todo make packet type configurable by each system
|
||||
$o = new Packet\FSC48;
|
||||
// Get packet type
|
||||
$type = collect(Packet::PACKET_TYPES)->get($this->system->pkt_type ?: config('app.default_pkt'));
|
||||
$o = new $type;
|
||||
$o->addressHeader($ao,$this);
|
||||
|
||||
// $oo = Netmail/Echomail Model
|
||||
|
Reference in New Issue
Block a user