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
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
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-05