Browse Source

refactoring

dev-master
Simon Vieille 4 years ago
parent
commit
00afec0199
16 changed files with 2 additions and 18 deletions
  1. +0
    -1
      src/Deblan/PowerDNS/Command/DomainAddCommand.php
  2. +0
    -1
      src/Deblan/PowerDNS/Command/DomainListCommand.php
  3. +0
    -1
      src/Deblan/PowerDNS/Command/DomainRemoveCommand.php
  4. +1
    -2
      src/Deblan/PowerDNS/Command/ZoneAddCommand.php
  5. +0
    -1
      src/Deblan/PowerDNS/Command/ZoneAssignCommand.php
  6. +0
    -1
      src/Deblan/PowerDNS/Command/ZoneListCommand.php
  7. +0
    -1
      src/Deblan/PowerDNS/Command/ZonePushCommand.php
  8. +0
    -1
      src/Deblan/PowerDNS/Command/ZoneRecordAddCommand.php
  9. +0
    -1
      src/Deblan/PowerDNS/Command/ZoneRecordRemoveCommand.php
  10. +0
    -1
      src/Deblan/PowerDNS/Command/ZoneRemoveCommand.php
  11. +0
    -1
      src/Deblan/PowerDNS/Command/ZoneUnassignCommand.php
  12. +0
    -1
      src/Deblan/PowerDNS/Command/ZoneVersionActiveCommand.php
  13. +1
    -2
      src/Deblan/PowerDNS/Command/ZoneVersionAddCommand.php
  14. +0
    -1
      src/Deblan/PowerDNS/Command/ZoneVersionCopyCommand.php
  15. +0
    -1
      src/Deblan/PowerDNS/Command/ZoneVersionRemoveCommand.php
  16. +0
    -1
      src/Deblan/PowerDNS/Command/ZoneVersionUnactiveCommand.php

+ 0
- 1
src/Deblan/PowerDNS/Command/DomainAddCommand.php View File

@@ -5,7 +5,6 @@ namespace Deblan\PowerDNS\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Command\Command;
use Deblan\Console\Command\AbstractCommand;
use Deblan\PowerDNS\Model\Domain;
use Deblan\PowerDNS\Model\DomainQuery;

+ 0
- 1
src/Deblan/PowerDNS/Command/DomainListCommand.php View File

@@ -5,7 +5,6 @@ namespace Deblan\PowerDNS\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Command\Command;
use Deblan\PowerDNS\Model\DomainQuery;
use Deblan\Console\Command\AbstractCommand;


+ 0
- 1
src/Deblan/PowerDNS/Command/DomainRemoveCommand.php View File

@@ -5,7 +5,6 @@ namespace Deblan\PowerDNS\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Command\Command;
use Deblan\PowerDNS\Model\DomainQuery;
use Deblan\Console\Command\AbstractCommand;


+ 1
- 2
src/Deblan/PowerDNS/Command/ZoneAddCommand.php View File

@@ -5,7 +5,6 @@ namespace Deblan\PowerDNS\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Command\Command;
use Deblan\Console\Command\AbstractCommand;
use Deblan\PowerDNS\Model\Zone;

@@ -37,7 +36,7 @@ class ZoneAddCommand extends AbstractCommand
$description = $this->getHelper('dialog')->ask($this->getOutput(), 'Description: ', null);
}

$zone = (new Zone())
(new Zone())
->setName($name)
->setDescription($description)
->save();

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneAssignCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Deblan\Console\Command\AbstractCommand;
use Deblan\PowerDNS\Model\Domain;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneListCommand.php View File

@@ -5,7 +5,6 @@ namespace Deblan\PowerDNS\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Command\Command;
use Deblan\PowerDNS\Model\ZoneQuery;

class ZoneListCommand extends AbstractZoneCommand

+ 0
- 1
src/Deblan/PowerDNS/Command/ZonePushCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Propel\Runtime\ActiveQuery\Criteria;
use Deblan\PowerDNS\Model\RecordQuery;
use Deblan\PowerDNS\Model\DomainQuery;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneRecordAddCommand.php View File

@@ -5,7 +5,6 @@ namespace Deblan\PowerDNS\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Command\Command;
use Deblan\Console\Command\AbstractCommand;
use Symfony\Component\Console\Input\InputArgument;
use Deblan\PowerDNS\Model\Map\ZoneRecordTableMap;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneRecordRemoveCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Deblan\Console\Command\AbstractCommand;
use Symfony\Component\Console\Input\InputArgument;
use Deblan\PowerDNS\Model\ZoneRecordQuery;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneRemoveCommand.php View File

@@ -5,7 +5,6 @@ namespace Deblan\PowerDNS\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Command\Command;
use Deblan\Console\Command\AbstractCommand;
use Deblan\PowerDNS\Model\ZoneQuery;
use Symfony\Component\Console\Input\InputArgument;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneUnassignCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Deblan\Console\Command\AbstractCommand;
use Deblan\PowerDNS\Model\Domain;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneVersionActiveCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Deblan\Console\Command\AbstractCommand;
use Deblan\PowerDNS\Model\ZoneVersionQuery;

+ 1
- 2
src/Deblan/PowerDNS/Command/ZoneVersionAddCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Deblan\Console\Command\AbstractCommand;
use Deblan\PowerDNS\Model\ZoneVersionQuery;
@@ -38,7 +37,7 @@ class ZoneVersionAddCommand extends AbstractCommand
return;
}

$zoneVersion = (new ZoneVersion())
(new ZoneVersion())
->setVersion($zone->countZoneVersions() ? ZoneVersionQuery::create()->orderByVersion(Criteria::DESC)->findOne()->getVersion() + 1 : 1)
->setZone($zone)
->setIsActive(false)

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneVersionCopyCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Deblan\Console\Command\AbstractCommand;
use Deblan\PowerDNS\Model\ZoneVersionQuery;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneVersionRemoveCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Deblan\Console\Command\AbstractCommand;
use Deblan\PowerDNS\Model\ZoneVersionQuery;

+ 0
- 1
src/Deblan/PowerDNS/Command/ZoneVersionUnactiveCommand.php View File

@@ -4,7 +4,6 @@ namespace Deblan\PowerDNS\Command;

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Deblan\Console\Command\AbstractCommand;
use Deblan\PowerDNS\Model\ZoneVersionQuery;

Loading…
Cancel
Save