laasti / symfony-session-provider
Symfony会话的league/container服务提供程序。
v1.0
2015-08-29 03:29 UTC
Requires
- league/container: ^1.3
- symfony/http-foundation: ^2.7
This package is not auto-updated.
Last update: 2024-09-18 09:45:09 UTC
README
Symfony会话的league/container服务提供程序。
安装
composer require laasti/symfony-session-provider
用法
$container = new League\Container\Container; $container->addServiceProvider('Laasti\SymfonySessionProvider\SymfonySessionProvider'); //To add configuration, by default it uses native sessions $container->add('config.session', []); //Get session $session = $container->get('Symfony\Component\HttpFoundation\Session\SessionInterface');
贡献
- 分叉它!
- 创建你的功能分支:
git checkout -b my-new-feature
- 提交你的更改:
git commit -am '添加一些功能'
- 推送到分支:
git push origin my-new-feature
- 提交拉取请求 :D
历史
查看CHANGELOG.md以获取更多信息。
致谢
作者:Sonia Marquette (@nebulousGirl)
许可协议
在MIT许可下发布。查看LICENSE.txt文件。