Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

SessionManager creates instance of $requestedName #73

Closed
wants to merge 1 commit into from
Closed

SessionManager creates instance of $requestedName #73

wants to merge 1 commit into from

Conversation

thomascube
Copy link

In order to extend the behaviour and functionality of the (default) SessionManager in an application, one still wants to use the default factory with all its logic reading config and setting up the manager.

This isn't possible if the class instantiated by the factory is hard-coded. This PR wants to solve this by considering the $requestedName parameter when creating a SessionManager instance. With a simple alias one can now create extended session managers.

Add support for Zend v3 FactoryInterface by considering the
$requestedName parameter when creating a SessionManager instance.

This allows applications to extend SessionManager by still using
the default factory with all its logic.
weierophinney added a commit that referenced this pull request Jun 19, 2017
SessionManager creates instance of $requestedName
weierophinney added a commit that referenced this pull request Jun 19, 2017
weierophinney added a commit that referenced this pull request Jun 19, 2017
@weierophinney
Copy link
Member

Thanks, @thomascube

@weierophinney
Copy link
Member

Merged to develop for release with 2.8.0.

weierophinney added a commit to Slamdunk/zend-session that referenced this pull request Jun 19, 2017
New expectation introduced in zendframework#73 to use modern exception expectation
method.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants