mirror of
https://gh.wpcy.net/https://github.com/LJPc-solutions/freescout-calendar-module.git
synced 2026-07-16 10:23:07 +08:00
26 lines
491 B
PHP
26 lines
491 B
PHP
<?php
|
|
|
|
use Dallgoot\Yaml\Types\YamlObject;
|
|
use Dallgoot\Yaml\Types\Compact;
|
|
|
|
|
|
$yaml = new YamlObject(0);
|
|
|
|
$network = (object) ['ethernets' => new \stdClass, 'version' => 2];
|
|
|
|
|
|
|
|
$enp0s3 = (object) [
|
|
'addresses' => new Compact(['192.168.1.84/24']),
|
|
'gateway4' => '192.168.1.1',
|
|
'nameservers' => new \stdClass
|
|
];
|
|
|
|
|
|
$enp0s3->nameservers->addresses = new Compact(['192.168.1.1']);
|
|
$network->ethernets->enp0s3 = $enp0s3;
|
|
|
|
$yaml->network = $network;
|
|
|
|
|
|
return $yaml;
|