anonymize plugin standard files
This commit is contained in:
parent
fc2a12cae8
commit
914722068d
6 changed files with 24 additions and 20 deletions
|
@ -12,6 +12,9 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
if (Dotclear\Plugin\improve\Admin::init()) {
|
||||
Dotclear\Plugin\improve\Admin::process();
|
||||
$admin = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Admin']);
|
||||
if ($admin::init()) {
|
||||
return $admin::process();
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
11
_config.php
11
_config.php
|
@ -12,11 +12,8 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
if (!defined('DC_CONTEXT_MODULE')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (Dotclear\Plugin\improve\Config::init()) {
|
||||
Dotclear\Plugin\improve\Config::process();
|
||||
Dotclear\Plugin\improve\Config::render();
|
||||
$config = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Config']);
|
||||
if ($config::init()) {
|
||||
$config::process();
|
||||
$config::render();
|
||||
}
|
||||
|
|
|
@ -12,8 +12,9 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
if (Dotclear\Plugin\improve\Install::init()) {
|
||||
return Dotclear\Plugin\improve\Install::process();
|
||||
$install = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Install']);
|
||||
if ($install::init()) {
|
||||
return $install::process();
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
|
@ -12,10 +12,11 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
if (!class_exists('Dotclear\Plugin\improve\Prepend')) {
|
||||
require __DIR__ . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'Prepend.php';
|
||||
$prepend = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Prepend']);
|
||||
if (!class_exists($prepend)) {
|
||||
require implode(DIRECTORY_SEPARATOR, [__DIR__, 'inc', 'Prepend.php']);
|
||||
|
||||
if (Dotclear\Plugin\improve\Prepend::init()) {
|
||||
Dotclear\Plugin\improve\Prepend::process();
|
||||
if ($prepend::init()) {
|
||||
$prepend::process();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
if (Dotclear\Plugin\improve\Uninstall::init()) {
|
||||
Dotclear\Plugin\improve\Uninstall::process($this);
|
||||
$uninstall = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Uninstall']);
|
||||
if ($uninstall::init()) {
|
||||
$uninstall::process($this);
|
||||
}
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
if (Dotclear\Plugin\improve\Manage::init()) {
|
||||
Dotclear\Plugin\improve\Manage::process();
|
||||
Dotclear\Plugin\improve\Manage::render();
|
||||
$manage = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Manage']);
|
||||
if ($manage::init()) {
|
||||
$manage::process();
|
||||
$manage::render();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue