phpmentors / route-based-session-configuration-bundle
A Symfony bundle for session configuration based on route configuration
Installs: 653
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 2
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.5.9
- symfony/config: ~2.8|~3.0|~4.0
- symfony/dependency-injection: ~2.8|~3.0|~4.0
- symfony/framework-bundle: ~2.8|~3.0|~4.0
- symfony/http-foundation: ~2.8|~3.0|~4.0
- symfony/http-kernel: ~2.8|~3.0|~4.0
- symfony/routing: ~2.8|~3.0|~4.0
Requires (Dev)
- phpunit/phpunit: ~4.0
- symfony/asset: ~2.8|~3.0|~4.0
- symfony/browser-kit: ~2.8|~3.0|~4.0
- symfony/filesystem: ~2.8|~3.0|~4.0
- symfony/http-foundation: ~2.8|~3.0|~4.0
This package is auto-updated.
Last update: 2024-11-29 05:20:47 UTC
README
A Symfony bundle for session configuration based on route configuration
Features
- Runtime session configuration by route configuration
Installation
RouteBasedSessionConfigurationBundle can be installed using Composer.
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:
... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( ... new PHPMentors\RouteBasedSessionConfigurationBundle\PHPMentorsRouteBasedSessionConfigurationBundle(), ); ...
Configuration
# 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.
Copyright
Copyright (c) 2016-2017, 2019 KUBO Atsuhiro, All rights reserved.