Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do not lowercase driver names that are FQNs of PHP classes #35

Merged

Conversation

ikselven
Copy link

Without this change, SessionHandler storage drivers could only be added by adding new classes to the horde/sessionhandler package. There are situations when this is undesirable, e.g. if an app package wants to use its own custom SessionHandler storage driver that would not be useful on its own without the app. With this small change in the driver loading code, a driver class can now be part of any package, given that it is configured in Horde's config with its FQN, e.g.: "conf['sessionhandler']['type'] = '\Horde\Acme\SessionHandler\Storage\Acme';".

Without this change, SessionHandler storage drivers could only be added by adding new classes to the horde/sessionhandler package. There are situations when this is undesirable, e.g. if an app package wants to use its own custom SessionHandler storage driver that would not be useful on its own without the app. With this small change in the driver loading code, a driver class can now be part of any package, given that it is configured in Horde's config with its FQN, e.g.: "conf['sessionhandler']['type'] = '\Horde\Acme\SessionHandler\Storage\Acme';".
@ikselven ikselven requested a review from midahp July 30, 2024 07:58
@midahp midahp merged commit 2345d20 into FRAMEWORK_6_0 Jul 30, 2024
2 of 4 checks passed
@ikselven ikselven deleted the make-sessionhandler-driver-loading-more-flexible branch July 30, 2024 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants