https://github.com/phpmentors-jp/route-based-session-configuration-bundle
A Symfony bundle for session configuration based on route configuration
https://github.com/phpmentors-jp/route-based-session-configuration-bundle
Last synced: 29 days ago
JSON representation
A Symfony bundle for session configuration based on route configuration
- Host: GitHub
- URL: https://github.com/phpmentors-jp/route-based-session-configuration-bundle
- Owner: phpmentors-jp
- License: bsd-2-clause
- Created: 2016-12-16T05:53:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-07-19T01:55:53.000Z (about 4 years ago)
- Last Synced: 2026-03-25T03:33:00.465Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RouteBasedSessionConfigurationBundle
A Symfony bundle for session configuration based on route configuration
[](https://packagist.org/packages/phpmentors/route-based-session-configuration-bundle)
[](https://packagist.org/packages/phpmentors/route-based-session-configuration-bundle)
[](https://packagist.org/packages/phpmentors/route-based-session-configuration-bundle)
[](https://travis-ci.org/phpmentors-jp/route-based-session-configuration-bundleproxy-url-rewrite-bundle)
## Features
* Runtime session configuration by route configuration
## Installation
RouteBasedSessionConfigurationBundle can be installed using [Composer](http://getcomposer.org/).
First, add the dependency to `phpmentors/route-based-session-configuration-bundle` into your `composer.json` file as the following:
Stable version:
```
composer require phpmentors/route-based-session-configuration-bundle "1.1.*"
```
Development version:
```
composer require phpmentors/route-based-session-configuration-bundle "~1.2@dev"
```
Second, add `PHPMentorsRouteBasedSessionConfigurationBundle` into your bundles to register in `AppKernel::registerBundles()` as the following:
```php
...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
...
new PHPMentors\RouteBasedSessionConfigurationBundle\PHPMentorsRouteBasedSessionConfigurationBundle(),
);
...
```
## Configuration
```yaml
# app/config/routing.yml
# ...
customer:
# set session.* ini variables without leading "session."
# see "Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage::setOptions()" for available options
options:
session:
name: CUSTOMER_SESSION
# ...
```
## Support
If you find a bug or have a question, or want to request a feature, create an issue or pull request for it on [Issues](https://github.com/phpmentors-jp/route-based-session-configuration-bundle/issues).
## Copyright
Copyright (c) 2016-2017, 2019 KUBO Atsuhiro, All rights reserved.
## License
[The BSD 2-Clause License](http://opensource.org/licenses/BSD-2-Clause)