update namespaces

This commit is contained in:
Tsvetelin Tsonev 2018-04-22 13:59:25 +02:00
parent 87738c7a85
commit cb04da36ee
9 changed files with 15 additions and 13 deletions

View File

@ -3,6 +3,8 @@ namespace Nilemin\Virtualmin\Managers\Account\Email;
/**
* @author Tsvetelin Tsonev <github.tsonev@yahoo.com>
*
**/
interface EmailManagerInterface {
/**
* Creates email account.

View File

@ -1,13 +1,13 @@
<?php
namespace Nilemin\Virtualmin\Managers\Cron;
use Nilemin\Virtualmin\BaseManager;
use Nilemin\Virtualmin\Managers\BaseManager;
use Nilemin\Virtualmin\Http\HttpClientInterface;
/**
* @author Tsvetelin Tsonev <github.tsonev@yahoo.com>
*/
class CronManager extends BaseManager implements CronManagerInterface, CronManagerInterface {
class CronManager extends BaseManager implements CronManagerInterface {
/**
* CronManager constructor.

View File

@ -2,7 +2,8 @@
namespace Nilemin\Virtualmin\Managers\DNS;
use Nilemin\Virtualmin\Http\HttpClient;
use Nilemin\Manager\BaseManager;
use Nilemin\Virtualmin\Http\HttpClientInterface;
use Nilemin\Virtualmin\Managers\BaseManager;
use Nilet\Components\Configuration\Config;
/**
@ -38,7 +39,7 @@ class DNSManager extends BaseManager implements DNSManagerInterface {
* @param HttpClient $httpClient
* @param Config $config
*/
public function __construct(HttpClient $httpClient, Config $config) {
public function __construct(HttpClientInterface $httpClient, Config $config) {
parent::__construct($httpClient, $config);
}

View File

@ -2,7 +2,7 @@
namespace Nilemin\Virtualmin\Managers\Database;
use Nilemin\Virtualmin\Http\HttpClientInterface;
use Nilemin\Manager\BaseManager;
use Nilemin\Virtualmin\Managers\BaseManager;
use Nilemin\Virtualmin\Entities\Database;
/**

View File

@ -2,13 +2,13 @@
namespace Nilemin\Virtualmin\Managers\PHP;
use Nilemin\Virtualmin\Http\HttpClientInterface;
use Nilemin\Manager\BaseManager;
use Nilemin\Virtualmin\Managers\BaseManager;
use Nilemin\Virtualmin\Entities\PHPDirectory;
/**
* @author Tsvetelin Tsonev <github.tsonev@yahoo.com>
*/
class PHPManager extends BaseManager implements PHPManagerInterface, PHPManagerInterface {
class PHPManager extends BaseManager implements PHPManagerInterface {
public function __construct(HttpClientInterface $httpClient) {
parent::__construct($httpClient);

View File

@ -2,7 +2,7 @@
namespace Nilemin\Virtualmin\Managers\SSL;
use Nilemin\Virtualmin\Http\HttpClientInterface;
use Nilemin\Manager\BaseManager;
use Nilemin\Virtualmin\Managers\BaseManager;
use Nilet\Components\FileSystem\IFile;
/**

View File

@ -2,7 +2,7 @@
namespace Nilemin\Virtualmin\Managers\Scripts;
use Nilemin\Virtualmin\Http\HttpClientInterface;
use Nilemin\Manager\BaseManager;
use Nilemin\Virtualmin\Managers\BaseManager;
/**
* @author Tsvetelin Tsonev <github.tsonev@yahoo.com>

View File

@ -2,7 +2,7 @@
namespace Nilemin\Virtualmin\Managers\Server;
use Nilemin\Virtualmin\Http\HttpClientInterface;
use Nilemin\Manager\BaseManager;
use Nilemin\Virtualmin\Managers\BaseManager;
use Nilemin\Virtualmin\Entities\Server;
use Nilemin\Virtualmin\Entities\ServerRedirect;
use Nilemin\Virtualmin\Entities\SubServer;

View File

@ -1,8 +1,7 @@
<?php
namespace Nilemin\Virtualmin;
use Nilemin\Virtualmin\Accounts\Email\EmailAccountManager;
use Nilemin\Virtualmin\Managers\Account\Email\EmailAccountBaseManager;
use Nilemin\Virtualmin\Managers\Account\Email\EmailManager;
use Nilemin\Virtualmin\Managers\Account\Ftp\FtpManager;
use Nilemin\Virtualmin\Managers\Database\DatabaseManager;
use Nilemin\Virtualmin\Managers\PHP\PHPManager;
@ -121,7 +120,7 @@ class Virtualmin {
*
* @return ScriptsManager
*/
public function createCronManager(): ScriptsManager {
public function createCronManager(): CronManager {
return $this->dc->create(CronManager::class);
}