Skip to content
This repository was archived by the owner on May 24, 2018. It is now read-only.

Simplify example for zend.session.manager #1428

Open
adamlundrigan opened this issue Jan 14, 2015 · 2 comments
Open

Simplify example for zend.session.manager #1428

adamlundrigan opened this issue Jan 14, 2015 · 2 comments

Comments

@adamlundrigan
Copy link
Contributor

The current example is very complex:

http://zf2.readthedocs.org/en/latest/modules/zend.session.manager.html#initializing-the-session-manager

IMO the SessionManagerFactory provided by ZF2 would take care of most of this boilerplate.

An example of how I approach configuring the SessionManager in my projects: ZF-Commons/ZfcUser#274 (comment). In that example, we could pass configuration options (eg: validator list) to the SessionManager factory via the session_manager config key.

@Martin-P
Copy link
Contributor

SessionManagerFactory is indeed easier to use, however there is a problem with adding validators via config at this moment: zendframework/zendframework#7128

@xelax90
Copy link

xelax90 commented Nov 25, 2015

The Issue seems to be fixed, so the example could be simplified now

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants