add Exception class to plugin namespace

2.28
Jean-Christian Paul Denis 2023-03-18 10:42:39 +01:00
parent 478416d063
commit a45b83b1d0
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
6 changed files with 21 additions and 9 deletions

View File

@ -27,7 +27,6 @@ use Dotclear\Helper\Html\Form\{
Note, Note,
Para Para
}; };
use Exception;
class Config extends dcNsProcess class Config extends dcNsProcess
{ {

View File

@ -16,7 +16,6 @@ namespace Dotclear\Plugin\pacKman;
use dcCore; use dcCore;
use dcModules; use dcModules;
use Exception;
use files; use files;
use fileUnzip; use fileUnzip;
use path; use path;

21
src/Exception.php 100644
View File

@ -0,0 +1,21 @@
<?php
/**
* @brief pacKman, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
declare(strict_types=1);
namespace Dotclear\Plugin\pacKman;
use Exception as PhpException;
class Exception extends PhpException
{
}

View File

@ -17,7 +17,6 @@ namespace Dotclear\Plugin\pacKman;
use dcCore; use dcCore;
use dcNamespace; use dcNamespace;
use dcNsProcess; use dcNsProcess;
use Exception;
class Install extends dcNsProcess class Install extends dcNsProcess
{ {

View File

@ -24,9 +24,6 @@ use dcNsProcess;
use files; use files;
use http; use http;
/* php ns */
use Exception;
class Manage extends dcNsProcess class Manage extends dcNsProcess
{ {
public static function init(): bool public static function init(): bool

View File

@ -24,9 +24,6 @@ use form;
use html; use html;
use path; use path;
/* php */
use Exception;
class Utils class Utils
{ {
public static function getPluginsPath(): string public static function getPluginsPath(): string