Moving install to its own module, somehow makes more sense
parent
f7f7491f85
commit
c045dcbb51
|
@ -30,4 +30,4 @@ define('PSM_INSTALL', true);
|
||||||
require 'src/bootstrap.php';
|
require 'src/bootstrap.php';
|
||||||
|
|
||||||
$router = new psm\Router();
|
$router = new psm\Router();
|
||||||
$router->run('config_install');
|
$router->run('install');
|
||||||
|
|
|
@ -33,7 +33,6 @@ class ConfigModule implements ModuleInterface {
|
||||||
public function getControllers() {
|
public function getControllers() {
|
||||||
return array(
|
return array(
|
||||||
'config' => __NAMESPACE__ . '\Controller\ConfigController',
|
'config' => __NAMESPACE__ . '\Controller\ConfigController',
|
||||||
'install' => __NAMESPACE__ . '\Controller\InstallController',
|
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* @since phpservermon 2.1.0
|
* @since phpservermon 2.1.0
|
||||||
**/
|
**/
|
||||||
|
|
||||||
namespace psm\Module\Config\Controller;
|
namespace psm\Module\Install\Controller;
|
||||||
use psm\Module\AbstractController;
|
use psm\Module\AbstractController;
|
||||||
use psm\Service\Database;
|
use psm\Service\Database;
|
||||||
use psm\Service\Template;
|
use psm\Service\Template;
|
|
@ -0,0 +1,39 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* PHP Server Monitor
|
||||||
|
* Monitor your servers and websites.
|
||||||
|
*
|
||||||
|
* This file is part of PHP Server Monitor.
|
||||||
|
* PHP Server Monitor is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* PHP Server Monitor is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with PHP Server Monitor. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
* @package phpservermon
|
||||||
|
* @author Pepijn Over <pep@neanderthal-technology.com>
|
||||||
|
* @copyright Copyright (c) 2008-2014 Pepijn Over <pep@neanderthal-technology.com>
|
||||||
|
* @license http://www.gnu.org/licenses/gpl.txt GNU GPL v3
|
||||||
|
* @version Release: @package_version@
|
||||||
|
* @link http://www.phpservermonitor.org/
|
||||||
|
* @since phpservermon 2.2
|
||||||
|
**/
|
||||||
|
|
||||||
|
namespace psm\Module\Install;
|
||||||
|
use psm\Module\ModuleInterface;
|
||||||
|
|
||||||
|
class InstallModule implements ModuleInterface {
|
||||||
|
public function getControllers() {
|
||||||
|
return array(
|
||||||
|
'install' => __NAMESPACE__ . '\Controller\InstallController',
|
||||||
|
);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -84,6 +84,7 @@ class Router {
|
||||||
'config' => new Module\Config\ConfigModule(),
|
'config' => new Module\Config\ConfigModule(),
|
||||||
'server' => new Module\Server\ServerModule(),
|
'server' => new Module\Server\ServerModule(),
|
||||||
'user' => new Module\User\UserModule(),
|
'user' => new Module\User\UserModule(),
|
||||||
|
'install' => new Module\Install\InstallModule(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue