From 93d81a171c464655d0c03387d498d4b610e24a86 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 11 Feb 2012 12:21:08 +0100 Subject: [PATCH] [HttpFoundation] removed configuration for session storages in session.xml as we cannot provide a way to configure them (like before this PR anyway) --- .../FrameworkExtension.php | 2 +- .../Resources/config/session.xml | 43 +------------------ .../Session/SessionInterface.php | 1 - 3 files changed, 2 insertions(+), 44 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php index 426e78cf5e..d635a7f598 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php @@ -301,7 +301,7 @@ class FrameworkExtension extends Extension $this->addClassesToCompile(array( 'Symfony\\Bundle\\FrameworkBundle\\EventListener\\SessionListener', - 'Symfony\\Component\\HttpFoundation\\Session\Storage\\SessionStorageInterface', + 'Symfony\\Component\\HttpFoundation\\Session\\Storage\\SessionStorageInterface', $container->getDefinition('session')->getClass(), )); diff --git a/src/Symfony/Bundle/FrameworkBundle/Resources/config/session.xml b/src/Symfony/Bundle/FrameworkBundle/Resources/config/session.xml index 845bd2b501..41f9a1d6d1 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Resources/config/session.xml +++ b/src/Symfony/Bundle/FrameworkBundle/Resources/config/session.xml @@ -9,16 +9,7 @@ Symfony\Component\HttpFoundation\Session\Flash\AutoExpireFlashBag Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag Symfony\Component\HttpFoundation\Session\Storage\NativeFileSessionStorage - Symfony\Component\HttpFoundation\Session\Storage\NullSessionStorage - Symfony\Component\HttpFoundation\Session\Storage\NativeMemcacheSessionStorage - Symfony\Component\HttpFoundation\Session\Storage\NativeMemcachedSessionStorage - Symfony\Component\HttpFoundation\Session\Storage\NativeSqliteSessionStorage - Symfony\Component\HttpFoundation\Session\Storage\MemcacheSessionStorage - Symfony\Component\HttpFoundation\Session\Storage\MemcachedSessionStorage Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage - Memcache - Memcached - Symfony\Bundle\FrameworkBundle\EventListener\SessionListener @@ -30,9 +21,8 @@ + - - %kernel.cache_dir%/sessions @@ -44,37 +34,6 @@ %session.storage.options% - - tcp://127.0.0.1:11211?persistent=0 - %session.storage.options% - - - - 127.0.0.1:11211 - %session.storage.options% - - - - - tcp://127.0.0.1:11211?persistent=0 - %session.storage.options% - - - - - tcp://127.0.0.1:11211?persistent=0 - %session.storage.options% - - - - %kernel.cache_dir%/sf2_sqlite_sess.db - %session.storage.options% - - - - %session.storage.options% - - diff --git a/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php b/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php index 1b4b7bfdbc..c31da6d165 100644 --- a/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php +++ b/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php @@ -11,7 +11,6 @@ namespace Symfony\Component\HttpFoundation\Session; - /** * Interface for the session. *