smart-core/session-bundle

此包的最新版本(dev-master)没有可用的许可信息。

Doctrine ORM 会话存储处理程序

安装: 633

依赖项: 2

建议者: 0

安全: 0

星标: 2

关注者: 3

分支: 0

公开问题: 0

类型:symfony-bundle

dev-master 2017-11-02 04:12 UTC

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 到框架包的配置中。