mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/13740] Move installer files to phpbb/install directory
PHPBB3-13740
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\install\exception;
|
||||
|
||||
/**
|
||||
* This exception should be thrown when
|
||||
*/
|
||||
class cannot_build_container_exception extends installer_exception
|
||||
{
|
||||
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\install\exception;
|
||||
|
||||
/**
|
||||
* Exception for the event when installer config is not writable to disk
|
||||
*/
|
||||
class installer_config_not_writable_exception extends installer_exception
|
||||
{
|
||||
|
||||
}
|
22
phpBB/phpbb/install/exception/installer_exception.php
Normal file
22
phpBB/phpbb/install/exception/installer_exception.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\install\exception;
|
||||
|
||||
/**
|
||||
* Installer's base exception
|
||||
*/
|
||||
class installer_exception extends \Exception
|
||||
{
|
||||
|
||||
}
|
22
phpBB/phpbb/install/exception/invalid_dbms_exception.php
Normal file
22
phpBB/phpbb/install/exception/invalid_dbms_exception.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\install\exception;
|
||||
|
||||
/**
|
||||
* This exception should be thrown when
|
||||
*/
|
||||
class invalid_dbms_exception extends installer_exception
|
||||
{
|
||||
|
||||
}
|
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\install\exception;
|
||||
|
||||
class invalid_service_name_exception extends installer_exception
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $params;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $error;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param string $error The name of the missing installer module
|
||||
* @param array $params Additional values for message translation
|
||||
*/
|
||||
public function __construct($error, $params = array())
|
||||
{
|
||||
$this->error = $error;
|
||||
$this->params = $params;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the language entry's name for the error
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_error()
|
||||
{
|
||||
return $this->error;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns parameters for the language entry, if there is any
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function get_params()
|
||||
{
|
||||
return $this->params;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true, if there are any parameters set
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function has_params()
|
||||
{
|
||||
return (sizeof($this->params) !== 0);
|
||||
}
|
||||
}
|
42
phpBB/phpbb/install/exception/module_not_found_exception.php
Normal file
42
phpBB/phpbb/install/exception/module_not_found_exception.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\install\exception;
|
||||
|
||||
class module_not_found_exception extends installer_exception
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $module_service_name;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param string $module_service_name The name of the missing installer module
|
||||
*/
|
||||
public function __construct($module_service_name)
|
||||
{
|
||||
$this->module_service_name = $module_service_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the missing installer module's service name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_module_service_name()
|
||||
{
|
||||
return $this->module_service_name;
|
||||
}
|
||||
}
|
42
phpBB/phpbb/install/exception/task_not_found_exception.php
Normal file
42
phpBB/phpbb/install/exception/task_not_found_exception.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\install\exception;
|
||||
|
||||
class task_not_found_exception extends installer_exception
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $task_service_name;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param string $task_service_name The name of the missing installer module
|
||||
*/
|
||||
public function __construct($task_service_name)
|
||||
{
|
||||
$this->task_service_name = $task_service_name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the missing installer task's service name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_task_service_name()
|
||||
{
|
||||
return $this->task_service_name;
|
||||
}
|
||||
}
|
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\install\exception;
|
||||
|
||||
/**
|
||||
* This exception should be thrown when user interaction is inevitable
|
||||
*
|
||||
* Note: Please note that the output should already be setup for the user
|
||||
* when you use throw this exception
|
||||
*/
|
||||
class user_interaction_required_exception extends installer_exception
|
||||
{
|
||||
|
||||
}
|
Reference in New Issue
Block a user