diff --git a/README.md b/README.md index 668039a..0f0007e 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,9 @@ else { AuthenticationSystem::beginLogin($session->getStore("auth")); } ``` + +# Proudly sponsored by + +[JetBrains Open Source sponsorship program](https://www.jetbrains.com/community/opensource/) + +[![JetBrains logo.](https://resources.jetbrains.com/storage/products/company/brand/logos/jetbrains.svg)](https://www.jetbrains.com/community/opensource/) diff --git a/src/SessionSetup.php b/src/SessionSetup.php index c548a9f..639fd0f 100644 --- a/src/SessionSetup.php +++ b/src/SessionSetup.php @@ -6,7 +6,7 @@ use SessionHandlerInterface; class SessionSetup { - public static function attachHandler( + public function attachHandler( string $handlerClass = SessionHandler::class ):SessionHandlerInterface { // Ensure class name is fully qualified. diff --git a/src/SessionStoreFactory.php b/src/SessionStoreFactory.php index 7e6aeb3..aaf6da0 100644 --- a/src/SessionStoreFactory.php +++ b/src/SessionStoreFactory.php @@ -2,7 +2,7 @@ namespace Gt\Session; class SessionStoreFactory { - public static function create( + public function create( string $namespace, Session $session, ):SessionStore {