* [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:
nuxsmin
2018-09-01 21:38:42 +02:00
parent 6664a50329
commit af8b21fd10
34 changed files with 1562 additions and 750 deletions

View File

@@ -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()
{