Skip to content

Commit

Permalink
Adjust namespace declarations
Browse files Browse the repository at this point in the history
refs #7163
  • Loading branch information
Johannes Meyer committed Nov 10, 2014
1 parent 8f21201 commit 21ed823
Show file tree
Hide file tree
Showing 36 changed files with 77 additions and 82 deletions.
2 changes: 1 addition & 1 deletion library/Icinga/Application/Modules/Module.php
Expand Up @@ -18,7 +18,7 @@
use Icinga\Web\Menu;
use Icinga\Web\Widget;
use Icinga\Web\Widget\Dashboard\Pane;
use Icinga\Web\Setup\SetupWizard;
use Icinga\Module\Setup\SetupWizard;
use Icinga\Util\File;
use Icinga\Exception\ProgrammingError;
use Icinga\Exception\IcingaException;
Expand Down
Expand Up @@ -6,7 +6,7 @@

use Exception;
use Zend_Config;
use Icinga\Web\Setup\Step;
use Icinga\Module\Setup\Step;
use Icinga\Application\Config;
use Icinga\File\Ini\IniWriter;

Expand Down
Expand Up @@ -6,7 +6,7 @@

use Exception;
use Zend_Config;
use Icinga\Web\Setup\Step;
use Icinga\Module\Setup\Step;
use Icinga\Application\Config;
use Icinga\File\Ini\IniWriter;

Expand Down
Expand Up @@ -6,7 +6,7 @@

use Exception;
use Zend_Config;
use Icinga\Web\Setup\Step;
use Icinga\Module\Setup\Step;
use Icinga\Application\Config;
use Icinga\File\Ini\IniWriter;

Expand Down
12 changes: 6 additions & 6 deletions modules/monitoring/library/Monitoring/MonitoringWizard.php
Expand Up @@ -7,15 +7,15 @@
use Icinga\Web\Form;
use Icinga\Web\Wizard;
use Icinga\Web\Request;
use Icinga\Web\Setup\Setup;
use Icinga\Web\Setup\MakeDirStep;
use Icinga\Web\Setup\EnableModuleStep;
use Icinga\Web\Setup\SetupWizard;
use Icinga\Web\Setup\Requirements;
use Icinga\Module\Setup\Setup;
use Icinga\Module\Setup\SetupWizard;
use Icinga\Module\Setup\Requirements;
use Icinga\Module\Setup\Utils\MakeDirStep;
use Icinga\Module\Setup\Utils\EnableModuleStep;
use Icinga\Module\Monitoring\Installation\BackendStep;
use Icinga\Module\Monitoring\Installation\InstanceStep;
use Icinga\Module\Monitoring\Installation\SecurityStep;
use Icinga\Form\Setup\SummaryPage;
use Icinga\Module\Setup\Form\SummaryPage;
use Icinga\Module\Monitoring\Form\Setup\WelcomePage;
use Icinga\Module\Monitoring\Form\Setup\BackendPage;
use Icinga\Module\Monitoring\Form\Setup\InstancePage;
Expand Down
2 changes: 1 addition & 1 deletion modules/setup/application/clicommands/SetupCommand.php
Expand Up @@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Clicommands;
namespace Icinga\Module\Setup\Clicommands;

use Icinga\Cli\Command;

Expand Down
2 changes: 1 addition & 1 deletion modules/setup/application/controllers/SetupController.php
Expand Up @@ -2,8 +2,8 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

use Icinga\Application\WebWizard;
use Icinga\Web\Controller\ActionController;
use Icinga\Module\Setup\WebWizard;

class SetupController extends ActionController
{
Expand Down
2 changes: 1 addition & 1 deletion modules/setup/application/forms/AdminAccountPage.php
Expand Up @@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;
namespace Icinga\Module\Setup\Form;

use Exception;
use Zend_Config;
Expand Down
2 changes: 1 addition & 1 deletion modules/setup/application/forms/AuthBackendPage.php
Expand Up @@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;
namespace Icinga\Module\Setup\Form;

use Zend_Config;
use Icinga\Web\Form;
Expand Down
2 changes: 1 addition & 1 deletion modules/setup/application/forms/AuthenticationPage.php
Expand Up @@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;
namespace Icinga\Module\Setup\Form;

use Icinga\Web\Form;
use Icinga\Application\Platform;
Expand Down
4 changes: 2 additions & 2 deletions modules/setup/application/forms/DatabaseCreationPage.php
Expand Up @@ -2,12 +2,12 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;
namespace Icinga\Module\Setup\Form;

use PDOException;
use Icinga\Web\Form;
use Icinga\Web\Form\Element\Note;
use Icinga\Web\Setup\DbTool;
use Icinga\Module\Setup\Utils\DbTool;

/**
* Wizard page to define a database user that is able to create databases and tables
Expand Down
4 changes: 2 additions & 2 deletions modules/setup/application/forms/DbResourcePage.php
Expand Up @@ -2,13 +2,13 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;
namespace Icinga\Module\Setup\Form;

use PDOException;
use Icinga\Web\Form;
use Icinga\Web\Setup\DbTool;
use Icinga\Web\Form\Element\Note;
use Icinga\Form\Config\Resource\DbResourceForm;
use Icinga\Module\Setup\Utils\DbTool;

/**
* Wizard page to define connection details for a database resource
Expand Down
2 changes: 1 addition & 1 deletion modules/setup/application/forms/GeneralConfigPage.php
Expand Up @@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;
namespace Icinga\Module\Setup\Form;

use Icinga\Web\Form;
use Icinga\Web\Form\Element\Note;
Expand Down
6 changes: 1 addition & 5 deletions modules/setup/application/forms/LdapDiscoveryConfirmPage.php
Expand Up @@ -2,14 +2,10 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;
namespace Icinga\Module\Setup\Form;

use Icinga\Protocol\Dns;
use Icinga\Web\Form;
use Icinga\Web\Form\Element\Note;
use Icinga\Form\LdapDiscoveryForm;
use Icinga\Form\Config\Resource\LdapResourceForm;
use Icinga\Web\Request;

/**
* Wizard page to define the connection details for a LDAP resource
Expand Down
5 changes: 1 addition & 4 deletions modules/setup/application/forms/LdapDiscoveryPage.php
Expand Up @@ -2,14 +2,11 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;
namespace Icinga\Module\Setup\Form;

use Icinga\Protocol\Dns;
use Icinga\Web\Form;
use Icinga\Web\Form\Element\Note;
use Icinga\Form\LdapDiscoveryForm;
use Icinga\Form\Config\Resource\LdapResourceForm;
use Icinga\Web\Request;

/**
* Wizard page to define the connection details for a LDAP resource
Expand Down
2 changes: 1 addition & 1 deletion modules/setup/application/forms/LdapResourcePage.php
Expand Up @@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;
namespace Icinga\Module\Setup\Form;

use Icinga\Web\Form;
use Icinga\Web\Form\Element\Note;
Expand Down
2 changes: 1 addition & 1 deletion modules/setup/application/forms/ModulePage.php
Expand Up @@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;
namespace Icinga\Module\Setup\Form;

use InvalidArgumentException;
use Icinga\Application\Icinga;
Expand Down
2 changes: 1 addition & 1 deletion modules/setup/application/forms/PreferencesPage.php
Expand Up @@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;
namespace Icinga\Module\Setup\Form;

use Icinga\Web\Form;
use Icinga\Application\Platform;
Expand Down
4 changes: 2 additions & 2 deletions modules/setup/application/forms/RequirementsPage.php
Expand Up @@ -2,10 +2,10 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;
namespace Icinga\Module\Setup\Form;

use Icinga\Web\Form;
use Icinga\Web\Setup\Requirements;
use Icinga\Module\Setup\Requirements;

/**
* Wizard page to list setup requirements
Expand Down
2 changes: 1 addition & 1 deletion modules/setup/application/forms/SummaryPage.php
Expand Up @@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;
namespace Icinga\Module\Setup\Form;

use Icinga\Web\Form;

Expand Down
4 changes: 2 additions & 2 deletions modules/setup/application/forms/WelcomePage.php
Expand Up @@ -2,11 +2,11 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Form\Setup;
namespace Icinga\Module\Setup\Form;

use Icinga\Application\Icinga;
use Icinga\Web\Form;
use Icinga\Web\Form\Validator\TokenValidator;
use Icinga\Module\Setup\Web\Form\Validator\TokenValidator;

/**
* Wizard page to authenticate and welcome the user
Expand Down
@@ -1,7 +1,7 @@
<?php

use Icinga\Web\Wizard;
use Icinga\Web\Setup\Requirements;
use Icinga\Module\Setup\Requirements;

$requirements = $form->getRequirements();

Expand Down
2 changes: 1 addition & 1 deletion modules/setup/library/Setup/Exception/SetupException.php
Expand Up @@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Exception;
namespace Icinga\Module\Setup\Exception;

/**
* Class SetupException
Expand Down
2 changes: 1 addition & 1 deletion modules/setup/library/Setup/Requirements.php
Expand Up @@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Web\Setup;
namespace Icinga\Module\Setup;

use ArrayIterator;
use IteratorAggregate;
Expand Down
4 changes: 2 additions & 2 deletions modules/setup/library/Setup/Setup.php
Expand Up @@ -2,11 +2,11 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Web\Setup;
namespace Icinga\Module\Setup;

use ArrayIterator;
use IteratorAggregate;
use Icinga\Exception\SetupException;
use Icinga\Module\Setup\Exception\SetupException;

/**
* Container for multiple configuration steps
Expand Down
2 changes: 1 addition & 1 deletion modules/setup/library/Setup/SetupWizard.php
Expand Up @@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Web\Setup;
namespace Icinga\Module\Setup;

/**
* Interface for wizards providing a setup and requirements
Expand Down
2 changes: 1 addition & 1 deletion modules/setup/library/Setup/Step.php
Expand Up @@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Web\Setup;
namespace Icinga\Module\Setup;

/**
* Class to implement functionality for a single setup step
Expand Down
4 changes: 2 additions & 2 deletions modules/setup/library/Setup/Steps/AuthenticationStep.php
Expand Up @@ -2,15 +2,15 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Installation;
namespace Icinga\Module\Setup\Steps;

use Exception;
use Zend_Config;
use Icinga\Web\Setup\Step;
use Icinga\Application\Config;
use Icinga\File\Ini\IniWriter;
use Icinga\Data\ResourceFactory;
use Icinga\Authentication\Backend\DbUserBackend;
use Icinga\Module\Setup\Step;

class AuthenticationStep extends Step
{
Expand Down
8 changes: 4 additions & 4 deletions modules/setup/library/Setup/Steps/DatabaseStep.php
Expand Up @@ -2,14 +2,14 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Installation;
namespace Icinga\Module\Setup\Steps;

use Exception;
use PDOException;
use Icinga\Web\Setup\Step;
use Icinga\Web\Setup\DbTool;
use Icinga\Application\Icinga;
use Icinga\Exception\SetupException;
use Icinga\Module\Setup\Step;
use Icinga\Module\Setup\Utils\DbTool;
use Icinga\Module\Setup\Exception\SetupException;

class DatabaseStep extends Step
{
Expand Down
4 changes: 2 additions & 2 deletions modules/setup/library/Setup/Steps/GeneralConfigStep.php
Expand Up @@ -2,14 +2,14 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Installation;
namespace Icinga\Module\Setup\Steps;

use Exception;
use Zend_Config;
use Icinga\Application\Logger;
use Icinga\Web\Setup\Step;
use Icinga\Application\Config;
use Icinga\File\Ini\IniWriter;
use Icinga\Module\Setup\Step;

class GeneralConfigStep extends Step
{
Expand Down
4 changes: 2 additions & 2 deletions modules/setup/library/Setup/Steps/ResourceStep.php
Expand Up @@ -2,13 +2,13 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Installation;
namespace Icinga\Module\Setup\Steps;

use Exception;
use Zend_Config;
use Icinga\Web\Setup\Step;
use Icinga\Application\Config;
use Icinga\File\Ini\IniWriter;
use Icinga\Module\Setup\Step;

class ResourceStep extends Step
{
Expand Down
2 changes: 1 addition & 1 deletion modules/setup/library/Setup/Utils/DbTool.php
Expand Up @@ -2,7 +2,7 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Web\Setup;
namespace Icinga\Module\Setup\Utils;

use PDO;
use PDOException;
Expand Down
3 changes: 2 additions & 1 deletion modules/setup/library/Setup/Utils/EnableModuleStep.php
Expand Up @@ -2,10 +2,11 @@
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}

namespace Icinga\Web\Setup;
namespace Icinga\Module\Setup\Utils;

use Exception;
use Icinga\Application\Icinga;
use Icinga\Module\Setup\Step;

class EnableModuleStep extends Step
{
Expand Down

0 comments on commit 21ed823

Please sign in to comment.