2018-12-28 03:28:33 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Engelsystem\Middleware;
|
|
|
|
|
|
|
|
use Engelsystem\Container\ServiceProvider;
|
|
|
|
|
|
|
|
class SessionHandlerServiceProvider extends ServiceProvider
|
|
|
|
{
|
2022-12-14 19:15:20 +01:00
|
|
|
public function register(): void
|
2018-12-28 03:28:33 +01:00
|
|
|
{
|
|
|
|
$this->app
|
|
|
|
->when(SessionHandler::class)
|
|
|
|
->needs('$paths')
|
|
|
|
->give(function () {
|
|
|
|
return [
|
|
|
|
'/api',
|
2020-04-20 00:01:37 +02:00
|
|
|
'/atom',
|
2020-09-01 00:27:29 +02:00
|
|
|
'/health',
|
2018-12-28 03:28:33 +01:00
|
|
|
'/ical',
|
|
|
|
'/metrics',
|
|
|
|
'/shifts-json-export',
|
|
|
|
'/stats',
|
|
|
|
];
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|