Improve session handlers (VUFIND-1355). (#1506)
- Move configuration setting to constructor via factory (instead of using setConfig in ManagerFactory) - Use camelCase for more parameters/variables - Simplify/condense code where possible - Add test coverage
Showing
- module/VuFind/src/VuFind/Session/AbstractBase.php 26 additions, 36 deletionsmodule/VuFind/src/VuFind/Session/AbstractBase.php
- module/VuFind/src/VuFind/Session/AbstractBaseFactory.php 71 additions, 0 deletionsmodule/VuFind/src/VuFind/Session/AbstractBaseFactory.php
- module/VuFind/src/VuFind/Session/Database.php 15 additions, 15 deletionsmodule/VuFind/src/VuFind/Session/Database.php
- module/VuFind/src/VuFind/Session/File.php 45 additions, 47 deletionsmodule/VuFind/src/VuFind/Session/File.php
- module/VuFind/src/VuFind/Session/HandlerInterface.php 0 additions, 11 deletionsmodule/VuFind/src/VuFind/Session/HandlerInterface.php
- module/VuFind/src/VuFind/Session/ManagerFactory.php 2 additions, 5 deletionsmodule/VuFind/src/VuFind/Session/ManagerFactory.php
- module/VuFind/src/VuFind/Session/Memcache.php 32 additions, 33 deletionsmodule/VuFind/src/VuFind/Session/Memcache.php
- module/VuFind/src/VuFind/Session/PluginManager.php 4 additions, 6 deletionsmodule/VuFind/src/VuFind/Session/PluginManager.php
- module/VuFind/src/VuFind/Session/Redis.php 26 additions, 41 deletionsmodule/VuFind/src/VuFind/Session/Redis.php
- module/VuFind/src/VuFind/Session/RedisFactory.php 95 additions, 0 deletionsmodule/VuFind/src/VuFind/Session/RedisFactory.php
- module/VuFind/src/VuFindTest/Unit/SessionHandlerTestCase.php 108 additions, 0 deletionsmodule/VuFind/src/VuFindTest/Unit/SessionHandlerTestCase.php
- module/VuFind/tests/unit-tests/src/VuFindTest/Session/DatabaseTest.php 158 additions, 0 deletions.../tests/unit-tests/src/VuFindTest/Session/DatabaseTest.php
- module/VuFind/tests/unit-tests/src/VuFindTest/Session/FileTest.php 144 additions, 0 deletions...Find/tests/unit-tests/src/VuFindTest/Session/FileTest.php
- module/VuFind/tests/unit-tests/src/VuFindTest/Session/MemcacheTest.php 159 additions, 0 deletions.../tests/unit-tests/src/VuFindTest/Session/MemcacheTest.php
- module/VuFind/tests/unit-tests/src/VuFindTest/Session/RedisTest.php 136 additions, 0 deletions...ind/tests/unit-tests/src/VuFindTest/Session/RedisTest.php
Please register or sign in to comment