定制 tobias/zend-expressive-session-zf1 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tobias/zend-expressive-session-zf1

Composer 安装命令:

composer require tobias/zend-expressive-session-zf1

包简介

ext-session persistence adapter for zend-expressive-session and compatible to ZF1

README 文档

README

Build status Coverage Status

Zend Expressive ZF1 Compatible Session

Provides an ZF1 compatible ext-session persistence adapter for use with zend-expressive-session.

Inspired and based on zend-expressive-session-ext.

Installation

Run the following to install this library::

$ composer require tobias/zend-expressive-session-zf1

Configuration

If your application uses the zend-component-installer Composer plugin, your configuration is complete; the shipped Tobias\Zend\Expressive\Zf1Session\ConfigProvider registers the Tobias\Zend\Expressive\Zf1Session\Persistence\SessionPersistence service, as well as an alias to SessionPersistence it under the name Zend\Expressive\Session\SessionPersistenceInterface.

You can add the Tobias\Zend\Expressive\Zf1Session\ConfigProvider manually to your config/config.php e.g.:

$aggregator = new ConfigAggregator(
    [
        // ...
        
        \Zend\Expressive\Session\ConfigProvider::class,
        \Tobias\Zend\Expressive\Zf1Session\ConfigProvider::class,

        // ...
    ]);

Otherwise, you will need to map Zend\Expressive\Session\SessionPersistenceInterface to Tobias\Zend\Expressive\Zf1Session\Persistence\SessionPersistence in your dependency injection container.

In addition to this you can configure all parameters passed to the session via configuration, e.g. config/autoload/session-params.global.php

<?php
return [
    'session' => [
        'use_cookies' => false,
        'use_only_cookies' => true,
    ]
];

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-11-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固