add Exception class to plugin namespace
This commit is contained in:
parent
478416d063
commit
a45b83b1d0
6 changed files with 21 additions and 9 deletions
|
@ -27,7 +27,6 @@ use Dotclear\Helper\Html\Form\{
|
||||||
Note,
|
Note,
|
||||||
Para
|
Para
|
||||||
};
|
};
|
||||||
use Exception;
|
|
||||||
|
|
||||||
class Config extends dcNsProcess
|
class Config extends dcNsProcess
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
Normal file
21
src/Exception.php
Normal 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
|
||||||
|
{
|
||||||
|
}
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue