From 19074bc248b6f4dddc7cb6055202b9904841ed98 Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Tue, 2 Jan 2024 12:16:26 +0200 Subject: [PATCH] Updates and added option for auto logout --- cp/bootstrap/app.php | 5 +++++ cp/composer.json | 18 ++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/cp/bootstrap/app.php b/cp/bootstrap/app.php index aabbbad..a5a9a67 100644 --- a/cp/bootstrap/app.php +++ b/cp/bootstrap/app.php @@ -89,6 +89,11 @@ $container->set('pdo', function () use ($pdo) { }); $container->set('auth', function() { + //$responseFactory = new \Nyholm\Psr7\Factory\Psr17Factory(); + //$response = $responseFactory->createResponse(); + //$autoLogout = new \Pinga\Auth\AutoLogout(); + //$autoLogout->watch(900, '/', null, 301, $response); + return new \App\Auth\Auth; }); diff --git a/cp/composer.json b/cp/composer.json index 6313315..bdeccf1 100644 --- a/cp/composer.json +++ b/cp/composer.json @@ -16,17 +16,15 @@ "ext-pdo": "*", "slim/slim": "4.12.0", "slim/twig-view": "^3.3.0", - "monolog/monolog": "^3.4.0", + "monolog/monolog": "^3.5.0", "respect/validation": "^2.2.4", "slim/csrf": "^1.3", "slim/flash": "^0.4", - "vlucas/phpdotenv": "^5.5", - "php-di/php-di": "^7.0.5", - "nyholm/psr7": "^1.8", - "nyholm/psr7-server": "^1.0.2", - "pinga/auth": "^0.2.1", - "phpmailer/phpmailer": "^6.8.1", - "utopia-php/messaging": "^0.3.0", + "vlucas/phpdotenv": "^5.6", + "php-di/php-di": "^7.0.6", + "nyholm/psr7": "^1.8.1", + "nyholm/psr7-server": "^1.1.0", + "pinga/auth": "^0.3.1", "filp/whoops": "^2.15.3", "imefisto/psr-swoole-native": "^1.1.2", "chubbyphp/chubbyphp-static-file": "^1.2", @@ -43,7 +41,7 @@ "matthiasmullie/scrapbook": "^1.5", "guzzlehttp/guzzle": "^7.8", "league/flysystem": "^3.23", - "mpociot/vat-calculator": "^3.6", + "mpociot/vat-calculator": "^3.7", "ramsey/uuid": "^4.7", "selective/xmldsig": "^3.1" }, @@ -52,4 +50,4 @@ "App\\": "app/" } } -} \ No newline at end of file +}