Move fido configuation items into fido namespace. If keeping packets move them into a date aligned subdir

This commit is contained in:
2023-09-22 14:45:44 +10:00
parent 22c8b3df74
commit 2ae24b9955
13 changed files with 97 additions and 26 deletions

View File

@@ -92,6 +92,7 @@ class Address extends Model
/**
* Find children dependent on this record
* @todo If bosses are defined here, and points, then mail to a point goes to it's boss
*/
public function children()
{
@@ -232,6 +233,7 @@ class Address extends Model
*
* @return Address|null
* @throws \Exception
* @todo Dont include points in this
*/
public function parent(): ?Address
{
@@ -386,7 +388,7 @@ class Address extends Model
*
* @param string $address
* @param System $so
* @return self
* @return Address|null
* @throws \Exception
*/
public static function createFTN(string $address,System $so): ?self
@@ -478,8 +480,6 @@ class Address extends Model
* Find a record in the DB for a node string, eg: 10:1/1.0
*
* @param string $address
* @param bool $create
* @param System|null $so
* @param bool $trashed
* @return Address|null
* @throws \Exception
@@ -554,6 +554,7 @@ class Address extends Model
* @param Domain $do
* @param int $host
* @param int $node
* @param int $point
* @param bool $trashed
* @return self|null
* @throws \Exception
@@ -770,7 +771,7 @@ class Address extends Model
return NULL;
// Get packet type
$type = collect(Packet::PACKET_TYPES)->get($this->system->pkt_type ?: config('app.default_pkt'));
$type = collect(Packet::PACKET_TYPES)->get($this->system->pkt_type ?: config('fido.packet_default'));
$o = new $type;
$o->addressHeader($ao,$this,$passwd);