mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-10 10:26:58 +01:00
refactor: Remove unneeded code form base controllers and improve traits decoupling.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -24,23 +24,7 @@
|
||||
|
||||
namespace SP\Modules\Web\Controllers\Plugin;
|
||||
|
||||
use DI\DependencyException;
|
||||
use DI\NotFoundException;
|
||||
use Exception;
|
||||
use SP\Core\Acl\Acl;
|
||||
use SP\Core\Acl\ActionsInterface;
|
||||
use SP\Core\Events\Event;
|
||||
use SP\Core\Events\EventMessage;
|
||||
use SP\Core\Exceptions\ConstraintException;
|
||||
use SP\Core\Exceptions\QueryException;
|
||||
use SP\Core\Exceptions\SessionTimeout;
|
||||
use SP\Domain\Auth\Services\AuthException;
|
||||
use SP\Domain\Plugin\Services\PluginDataService;
|
||||
use SP\Domain\Plugin\Services\PluginService;
|
||||
use SP\Http\JsonResponse;
|
||||
use SP\Infrastructure\Common\Repositories\NoSuchItemException;
|
||||
use SP\Infrastructure\Plugin\Repositories\PluginModel;
|
||||
use SP\Plugin\PluginManager;
|
||||
|
||||
/**
|
||||
* Class IndexController
|
||||
@@ -67,28 +51,4 @@ final class IndexController extends PluginSearchBase
|
||||
|
||||
$this->view();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @throws AuthException
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
* @throws SessionTimeout
|
||||
*/
|
||||
protected function initialize(): void
|
||||
{
|
||||
$this->checkLoggedIn();
|
||||
|
||||
$this->pluginService = $this->dic->get(PluginService::class);
|
||||
$this->pluginDataService = $this->dic->get(PluginDataService::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user