laasti / symfony-session-provider
A league/container service provider for Symfony's session.
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: 2025-01-08 11:27:06 UTC
README
A league/container service provider for Symfony's session.
Installation
composer require laasti/symfony-session-provider
Usage
$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');
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
History
See CHANGELOG.md for more information.
Credits
Author: Sonia Marquette (@nebulousGirl)
License
Released under the MIT License. See LICENSE.txt file.