smart-core/session-bundle

There is no license information available for the latest version (dev-master) of this package.

Doctrine ORM Session Storage Handler

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

This package is auto-updated.

Last update: 2024-03-29 00:37:21 UTC


README

Doctrine ORM Session Storage Handler

Из особенностей, бандл хранит поле user_id, что позволяет получать список пользователей online.

Installation

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new SmartCore\Bundle\SessionBundle\SmartCoreSessionBundle(),
    );
}

Enable 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 в конфигурации framework бандла.