Skip to content

Commit 79090ea

Browse files
authored
LotsLerum-158: Automatic logout - module, themes, config
Create SessionTimeoutFactory.php
1 parent 63e3a43 commit 79090ea

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
namespace LOTS\View\Helper;
3+
4+
use Laminas\ServiceManager\Factory\FactoryInterface;
5+
use Psr\Container\ContainerInterface;
6+
7+
class SessionTimeoutFactory implements FactoryInterface
8+
{
9+
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
10+
{
11+
$authManager = $container->get(\VuFind\Auth\Manager::class);
12+
return new SessionTimeout($authManager, null);
13+
}
14+
}

0 commit comments

Comments
 (0)