Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit74ccf70

Browse files
committed
reverted5b7ef11 (Simplify session
storage class names now we have a separate namespace for sessions)
1 parent91f4f8a commit74ccf70

File tree

35 files changed

+120
-120
lines changed

35 files changed

+120
-120
lines changed

‎CHANGELOG-2.1.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,11 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
239239
`getFlash()`, `hasFlash()`, andd `removeFlash()`. `getFlashes() returns a `FlashBagInterface`.
240240
* `Session->clear()` now only clears session attributes as before it cleared flash messages and
241241
attributes. `Session->getFlashes()->all()` clears flashes now.
242-
* Added `Symfony\Component\HttpFoundation\Session\Storage\AbstractStorage` base class for
242+
* Added `Symfony\Component\HttpFoundation\Session\Storage\AbstractSessionStorage` base class for
243243
session storage drivers.
244244
* Added `Symfony\Component\HttpFoundation\Session\Storage\SaveHandlerInterface` interface
245245
which storage drivers should implement after inheriting from
246-
`Symfony\Component\HttpFoundation\Session\Storage\AbstractStorage`when writing custom session save handlers.
246+
`Symfony\Component\HttpFoundation\Session\Storage\AbstractSessionStorage`when writing custom session save handlers.
247247
* [BC BREAK] `StorageInterface` methods removed: `write()`, `read()` and `remove()`. Added
248248
`getBag()`, `registerBag()`.
249249
* Moved attribute storage to `Symfony\Component\HttpFoundation\Attribute\AttributeBagInterface`.
@@ -252,10 +252,10 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
252252
* Added `Symfony\Component\HttpFoundation\Attribute\NamespacedAttributeBag` for namespace session attributes.
253253
* Session now implements `Symfony\Component\HttpFoundation\Session\SessionInterface` making
254254
implementation customizable and portable.
255-
* [BC BREAK] Removed `NativeStorage` and replaced with `NativeFileStorage`.
255+
* [BC BREAK] Removed `NativeSessionStorage` and replaced with `NativeFileSessionStorage`.
256256
* Added session storage drivers for PHP native Memcache, Memcached and SQLite session save handlers.
257257
* Added session storage drivers for custom Memcache, Memcached and Null session save handlers.
258-
* Removed `FilesystemStorage`, use `MockFileStorage` for functional testing instead.
258+
* Removed `FilesystemSessionStorage`, use `MockFileSessionStorage` for functional testing instead.
259259

260260
### HttpKernel
261261

‎UPGRADE-2.1.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,9 @@ UPGRADE FROM 2.0 to 2.1
301301
* Session storage drivers
302302

303303
Session storage drivers should inherit from
304-
`Symfony\Component\HttpFoundation\Session\Storage\AbstractStorage`
304+
`Symfony\Component\HttpFoundation\Session\Storage\AbstractSessionStorage`
305305
and no longer should implement`read()`,`write()`,`remove()` which were removed from the
306-
`StorageInterface`.
306+
`SessionStorageInterface`.
307307

308308
Any session storage driver that wants to use custom save handlers should
309309
implement`Symfony\Component\HttpFoundation\Session\Storage\SaveHandlerInterface`

‎src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionStorage.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespaceSymfony\Bridge\Doctrine\HttpFoundation;
44

55
useDoctrine\DBAL\Platforms\MySqlPlatform;
6-
useSymfony\Component\HttpFoundation\Session\Storage\AbstractStorage;
7-
useSymfony\Component\HttpFoundation\Session\Storage\SaveHandlerInterface;
6+
useSymfony\Component\HttpFoundation\Session\Storage\AbstractSessionStorage;
7+
useSymfony\Component\HttpFoundation\Session\Storage\SessionSaveHandlerInterface;
88
useDoctrine\DBAL\Driver\Connection;
99

1010
/**
@@ -13,7 +13,7 @@
1313
* @author Fabien Potencier <fabien@symfony.com>
1414
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
1515
*/
16-
classDbalStorageextendsAbstractStorageimplementsSaveHandlerInterface
16+
classDbalSessionStorageextendsAbstractSessionStorageimplementsSessionSaveHandlerInterface
1717
{
1818
/**
1919
* @var Connection

‎src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionStorageSchema.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
1111
*/
12-
finalclassDbalStorageSchemaextends Schema
12+
finalclassDbalSessionStorageSchemaextends Schema
1313
{
1414
private$tableName;
1515

‎src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ private function registerSessionConfiguration(array $config, ContainerBuilder $c
301301

302302
$this->addClassesToCompile(array(
303303
'Symfony\\Bundle\\FrameworkBundle\\EventListener\\SessionListener',
304-
'Symfony\\Component\\HttpFoundation\\Session\Storage\\StorageInterface',
304+
'Symfony\\Component\\HttpFoundation\\Session\Storage\\SessionStorageInterface',
305305
$container->getDefinition('session')->getClass(),
306306
));
307307

‎src/Symfony/Bundle/FrameworkBundle/Resources/config/session.xml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
<parameterkey="session.class">Symfony\Component\HttpFoundation\Session\Session</parameter>
99
<parameterkey="session.flashbag.class">Symfony\Component\HttpFoundation\Session\Flash\AutoExpireFlashBag</parameter>
1010
<parameterkey="session.attribute_bag.class">Symfony\Component\HttpFoundation\Session\Attribute\AttributeBag</parameter>
11-
<parameterkey="session.storage.native_file.class">Symfony\Component\HttpFoundation\Session\Storage\NativeFileStorage</parameter>
12-
<parameterkey="session.storage.null.class">Symfony\Component\HttpFoundation\Session\Storage\NullStorage</parameter>
13-
<parameterkey="session.storage.native_memcache.class">Symfony\Component\HttpFoundation\Session\Storage\NativeMemcacheStorage</parameter>
14-
<parameterkey="session.storage.native_memcached.class">Symfony\Component\HttpFoundation\Session\Storage\NativeMemcachedStorage</parameter>
15-
<parameterkey="session.storage.native_sqlite.class">Symfony\Component\HttpFoundation\Session\Storage\NativeSqliteStorage</parameter>
16-
<parameterkey="session.storage.memcache.class">Symfony\Component\HttpFoundation\Session\Storage\MemcacheStorage</parameter>
17-
<parameterkey="session.storage.memcached.class">Symfony\Component\HttpFoundation\Session\Storage\MemcachedStorage</parameter>
18-
<parameterkey="session.storage.mock_file.class">Symfony\Component\HttpFoundation\Session\Storage\MockFileStorage</parameter>
11+
<parameterkey="session.storage.native_file.class">Symfony\Component\HttpFoundation\Session\Storage\NativeFileSessionStorage</parameter>
12+
<parameterkey="session.storage.null.class">Symfony\Component\HttpFoundation\Session\Storage\NullSessionStorage</parameter>
13+
<parameterkey="session.storage.native_memcache.class">Symfony\Component\HttpFoundation\Session\Storage\NativeMemcacheSessionStorage</parameter>
14+
<parameterkey="session.storage.native_memcached.class">Symfony\Component\HttpFoundation\Session\Storage\NativeMemcachedSessionStorage</parameter>
15+
<parameterkey="session.storage.native_sqlite.class">Symfony\Component\HttpFoundation\Session\Storage\NativeSqliteSessionStorage</parameter>
16+
<parameterkey="session.storage.memcache.class">Symfony\Component\HttpFoundation\Session\Storage\MemcacheSessionStorage</parameter>
17+
<parameterkey="session.storage.memcached.class">Symfony\Component\HttpFoundation\Session\Storage\MemcachedSessionStorage</parameter>
18+
<parameterkey="session.storage.mock_file.class">Symfony\Component\HttpFoundation\Session\Storage\MockFileSessionStorage</parameter>
1919
<parameterkey="session.memcache.class">Memcache</parameter>
2020
<parameterkey="session.memcached.class">Memcached</parameter>
2121

‎src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/SessionHelperTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
useSymfony\Component\HttpFoundation\Request;
1515
useSymfony\Component\HttpFoundation\Session\Session;
16-
useSymfony\Component\HttpFoundation\Session\Storage\MockArrayStorage;
16+
useSymfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;
1717
useSymfony\Bundle\FrameworkBundle\Templating\Helper\SessionHelper;
1818

1919
class SessionHelperTestextends \PHPUnit_Framework_TestCase
@@ -24,7 +24,7 @@ public function setUp()
2424
{
2525
$this->request =newRequest();
2626

27-
$session =newSession(newMockArrayStorage());
27+
$session =newSession(newMockArraySessionStorage());
2828
$session->set('foobar','bar');
2929
$session->getFlashes()->set('notice','bar');
3030

‎src/Symfony/Bundle/FrameworkBundle/Tests/Templating/PhpEngineTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
useSymfony\Component\DependencyInjection\Container;
1616
useSymfony\Component\HttpFoundation\Request;
1717
useSymfony\Component\HttpFoundation\Session\Session;
18-
useSymfony\Component\HttpFoundation\Session\Storage\MockArrayStorage;
18+
useSymfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;
1919
useSymfony\Component\Templating\TemplateNameParser;
2020
useSymfony\Bundle\FrameworkBundle\Templating\GlobalVariables;
2121
useSymfony\Bundle\FrameworkBundle\Tests\TestCase;
@@ -64,7 +64,7 @@ protected function getContainer()
6464
{
6565
$container =newContainer();
6666
$request =newRequest();
67-
$session =newSession(newMockArrayStorage());
67+
$session =newSession(newMockArraySessionStorage());
6868

6969
$request->setSession($session);
7070
$container->set('request',$request);

‎src/Symfony/Bundle/TwigBundle/Tests/TwigEngineTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
useSymfony\Component\DependencyInjection\Container;
1616
useSymfony\Component\HttpFoundation\Request;
1717
useSymfony\Component\HttpFoundation\Session\Session;
18-
useSymfony\Component\HttpFoundation\Session\Storage\MockArrayStorage;
18+
useSymfony\Component\HttpFoundation\Session\Storage\MockArraySessionStorage;
1919
useSymfony\Component\Templating\TemplateNameParser;
2020
useSymfony\Bundle\FrameworkBundle\Templating\GlobalVariables;
2121

@@ -71,7 +71,7 @@ protected function getContainer()
7171
{
7272
$container =newContainer();
7373
$request =newRequest();
74-
$session =newSession(newMockArrayStorage());
74+
$session =newSession(newMockArraySessionStorage());
7575

7676
$request->setSession($session);
7777
$container->set('request',$request);

‎src/Symfony/Component/DependencyInjection/Container.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
*
4444
* <ul>
4545
* <li>request -> getRequestService()</li>
46-
* <li>mysql_session_storage ->getMysqlStorageService()</li>
47-
* <li>symfony.mysql_session_storage ->getSymfony_MysqlStorageService()</li>
46+
* <li>mysql_session_storage ->getMysqlSessionStorageService()</li>
47+
* <li>symfony.mysql_session_storage ->getSymfony_MysqlSessionStorageService()</li>
4848
* </ul>
4949
*
5050
* The container can have three possible behaviors when a service does not exist:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp