add Exception class to plugin namespace

This commit is contained in:
Jean-Christian 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,
Para
};
use Exception;
class Config extends dcNsProcess
{

View file

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

21
src/Exception.php Normal file
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 dcNamespace;
use dcNsProcess;
use Exception;
class Install extends dcNsProcess
{

View file

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

View file

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