Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-19T01:55:53.000Z (over 2 years ago)
- Last Synced: 2024-09-21T10:17:38.135Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 4
- 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
[![Total Downloads](https://poser.pugx.org/phpmentors/route-based-session-configuration-bundle/downloads)](https://packagist.org/packages/phpmentors/route-based-session-configuration-bundle)
[![Latest Stable Version](https://poser.pugx.org/phpmentors/route-based-session-configuration-bundle/v/stable)](https://packagist.org/packages/phpmentors/route-based-session-configuration-bundle)
[![Latest Unstable Version](https://poser.pugx.org/phpmentors/route-based-session-configuration-bundle/v/unstable)](https://packagist.org/packages/phpmentors/route-based-session-configuration-bundle)
[![Build Status](https://travis-ci.org/phpmentors-jp/route-based-session-configuration-bundle.svg?branch=master)](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)