removed injection of nameservercontroller
Signed-off-by: tracer <tracer@24unix.net>
This commit is contained in:
parent
4b19963279
commit
37cf94bbe6
|
@ -3,6 +3,7 @@
|
||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
use App\Repository\DomainRepository;
|
use App\Repository\DomainRepository;
|
||||||
|
use App\Repository\NameserverRepository;
|
||||||
|
|
||||||
error_reporting(error_level: E_ALL);
|
error_reporting(error_level: E_ALL);
|
||||||
|
|
||||||
|
@ -18,7 +19,7 @@ class DomainController
|
||||||
private string $namedConfLocalFile;
|
private string $namedConfLocalFile;
|
||||||
private string $zoneCachePath;
|
private string $zoneCachePath;
|
||||||
|
|
||||||
public function __construct(private NameserverController $nameserverController, private CheckController $checkController, private DomainRepository $domainRepository)
|
public function __construct(private NameserverRepository $nameserverRepository, private CheckController $checkController, private DomainRepository $domainRepository)
|
||||||
{
|
{
|
||||||
$this->localZoneFile = '/etc/bind/local.zones';
|
$this->localZoneFile = '/etc/bind/local.zones';
|
||||||
$this->localZonesDir = '/etc/bind/zones/';
|
$this->localZonesDir = '/etc/bind/zones/';
|
||||||
|
@ -82,7 +83,7 @@ class DomainController
|
||||||
|
|
||||||
function deleteOnNameservers(int $id)
|
function deleteOnNameservers(int $id)
|
||||||
{
|
{
|
||||||
$nameservers = $this->nameserverController->findAll();
|
$nameservers = $this->nameserverRepository->findAll();
|
||||||
foreach ($nameservers as $nameserver) {
|
foreach ($nameservers as $nameserver) {
|
||||||
echo($nameserver['name']);
|
echo($nameserver['name']);
|
||||||
$body = [
|
$body = [
|
||||||
|
|
Loading…
Reference in New Issue