mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
* [ADD] New preset option for session timeout based on client IP address and network. Related #912
* [MOD] Improved IP addresses handling * [MOD] Code refactoring * [FIX] Minor bugfixes
This commit is contained in:
@@ -26,6 +26,7 @@ namespace SP\Core;
|
||||
|
||||
use DI\Container;
|
||||
use Klein\Klein;
|
||||
use Psr\Container\ContainerInterface;
|
||||
use SP\Bootstrap;
|
||||
use SP\Config\Config;
|
||||
use SP\Core\Context\ContextInterface;
|
||||
@@ -70,12 +71,9 @@ abstract class ModuleBase
|
||||
/**
|
||||
* Module constructor.
|
||||
*
|
||||
* @param Container $container
|
||||
*
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
* @param ContainerInterface $container
|
||||
*/
|
||||
public function __construct(Container $container)
|
||||
public function __construct(ContainerInterface $container)
|
||||
{
|
||||
$this->container = $container;
|
||||
$this->config = $container->get(Config::class);
|
||||
@@ -118,9 +116,6 @@ abstract class ModuleBase
|
||||
|
||||
/**
|
||||
* Initializes event handlers
|
||||
*
|
||||
* @throws \DI\DependencyException
|
||||
* @throws \DI\NotFoundException
|
||||
*/
|
||||
protected function initEventHandlers()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user