smart-core / session-bundle
此包的最新版本(dev-master)没有可用的许可信息。
Doctrine ORM 会话存储处理程序
dev-master
2017-11-02 04:12 UTC
Requires
- php: >=5.3.3
- symfony/framework-bundle: >=2.1
This package is auto-updated.
Last update: 2024-08-29 01:36:14 UTC
README
Doctrine ORM 会话存储处理程序
该包的特点是存储 user_id 字段,这允许获取在线用户列表。
安装
在内核中启用此包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new SmartCore\Bundle\SessionBundle\SmartCoreSessionBundle(), ); }
启用 handler_id
# app/config/config.yml framework: session: handler_id: smart_core_session.handler
@todo
-
配置自动加载,例如
# app/config/config.yml smart_core_session: autoconfigure: true
在这种情况下,将自动应用 handler_id 到框架包的配置中。