Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
a2a8024
[FrameworkBundle] Refactor tests.
Dec 4, 2011
f21cfda
[HttpFoundation] Added structured namespacing to session attributes.
Nov 2, 2011
d20a1a0
[HttpFoundation] Move flash messages out of Session class and change …
Nov 4, 2011
04c5a3a
[HttpFoundation] Introduce a SessionInterface to make session class m…
Nov 22, 2011
202bde1
[HttpFoundation] Refactored the FlashBag* changing the way old messag…
Nov 23, 2011
6e4ee80
[BC Break][HttpFoundation] Refactored session handling to be true to …
Nov 23, 2011
f8ed4d8
[HttpFoundation] Added some new Native*Storage drivers for SQLite and…
Nov 23, 2011
e970caa
[HttpFoundation] SessionID is passed by PHP.
Nov 23, 2011
5920b69
[HttpFoundation] Add MemcacheSessionStorage driver.
Nov 23, 2011
006df6b
[HttpFoundation] Add MemcachedSessionStorage driver.
Nov 23, 2011
fe5fb53
[HttpFoundation] Added prefix to storage keys and declared properties.
Nov 24, 2011
e415277
[HttpFoundation] Documentation.
Nov 24, 2011
c2625c2
[BC Break][FrameworkBundle] Fix unit tests in.
Nov 24, 2011
5b15138
[HttpFoundation] Cleaned up constants.
Nov 24, 2011
58bc557
[HttpFoundation] remove test, needs to be completely re-written.
Nov 24, 2011
fe7bc8d
[HttpFoundation] Refactor test.
Nov 24, 2011
13f59b8
[WebProfilerBundle] Removed hack to make flash messages persist for a…
Nov 24, 2011
3340eaf
[Security] Refactor session storage driver in test.
Nov 24, 2011
e624746
[HttpFoundation] Added NullSessionStorage
Nov 24, 2011
402c3bd
[FrameworkBundle] Update session configuration XML.
Nov 24, 2011
1083d32
[HttpFoundation] Added native memcached session storage driver.
Nov 24, 2011
07dba61
[HttpFoundation] Correct callback names.
Nov 24, 2011
37455f3
[HttpFoundation] Remove check for now to allow tests to pass.
Nov 24, 2011
51f06a7
[TwigBundle] Refactor test for session management.
Nov 24, 2011
efadac3
[HttpFoundation][FrameworkBundle][SecurityBundle] Make parameters con…
Nov 24, 2011
af52d9e
Updated changelog and upgrading documentation.
Nov 24, 2011
f66987a
[HttpFoundation] FlashBag docblocks and class constants.
Nov 25, 2011
d6f779c
[HttpFoundation][FrameworkBundle] FilsyststemSessionStorage drive is …
Nov 27, 2011
967eb54
Coding standards, docblocks.
Nov 28, 2011
597b400
Typo.
Nov 28, 2011
22cd77c
Simplified examples of how to show flash messages.
Dec 2, 2011
de9f6df
[HttpFoundation] Add simple flash-message API to SessionInterface.
Dec 2, 2011
27383ac
[HttpFoundation] Change attribute namespacing character.
Dec 3, 2011
6f3135f
[HttpFoundation] Fix docblock return value.
Dec 3, 2011
be6810c
[Bridge/HttpFoundation] Refactored DbalSessionStorage
Dec 4, 2011
aee6c8a
[HttpFoundation] Typo fix.
Dec 4, 2011
9b0e1df
[HttpFoundation][FrameworkBundle] Moved session attributes to it's ow…
Dec 8, 2011
8498d7e
[HttpFoundation][FrameworkBundle] Made configuration of session stora…
Dec 8, 2011
3cc1f7e
[HttpFoundation] Allow session.cache_limiter to be forced if really r…
Dec 9, 2011
ccb1696
[HttpFoundation] Fix sprintf() calls.
Dec 10, 2011
044dca4
Documentation, coding standards and docblocks.
Dec 10, 2011
e89a82c
[HttpFoundation][FrameworkBundle][TwigBundle][Bridge/Doctrine] Move b…
Dec 11, 2011
eee89d6
[HttpFoundation][FrameworkBundle][SecurityBundle] Introduced mock ses…
Dec 12, 2011
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated changelog and upgrading documentation.
  • Loading branch information
Drak committed Dec 12, 2011
commit af52d9eb9ee2d246cb73bfc1e03c1ad966618be8
14 changes: 10 additions & 4 deletions CHANGELOG-2.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
* [BC BREAK] assets_base_urls and base_urls merging strategy has changed
* changed the default profiler storage to use the filesystem instead of SQLite
* added support for placeholders in route defaults and requirements (replaced by the value set in the service container)
* [BC BREAK] changed session.xml session.storage.native to session.storage.nativefile
* added new session storage drivers to session.xml:
session.storage.nativememcache, session.storage.nativememcached, session.storage.nativesqlite, session.storage.null

### SecurityBundle

Expand Down Expand Up @@ -77,6 +80,7 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
* added new events: `security.authentication.success` and `security.authentication.failure`
fired on authentication success/failure, regardless of authentication method,
events are defined in new event class: `Symfony\Component\Security\Core\AuthenticationEvents`.
* Changed default session storage service to session.storage.nativefile

### SwiftmailerBundle

Expand Down Expand Up @@ -149,13 +153,15 @@ To get the diff between two versions, go to https://github.com/symfony/symfony/c
in an array by type, so when processed in the view, adjustments need to be made accordingly.
* Flash messages are expired when retrieved (with $clear = true) set. This makes the implementation
more flexible and removed some dependencies in the Session management cycle.
* [BC BREAK] SessionStorageInterface has been altered and optionally require SessionSaveHandlerInterface
to implement customized session save handlers.
* [BC BREAK] SessionStorageInterface has been altered and now requires an instance of
FlashBagInterfaceand optionally use SessionSaveHandlerInterface to implement customized
session save handlers.
* Added AbstractSessionStorage base class.
* Session now implements SessionInterface making implementation customizable and portable.
* Session attributes are now stored in a structured array determined by the key name, separated by dots.
* [BC BREAK] Removed NativeSessionStorage and replaced with NativeFileSessionStorage
* Added session storage drivers for PHP native, SQLite and Memcache session storage.
* Added session storage drivers for custom Memcache and Memcached session storage.
* Added session storage drivers for PHP native Memcache, Memcached and SQLite session save handlers.
* Added session storage drivers for custom Memcache, Memcached and Null session save handlers.

### HttpKernel

Expand Down
14 changes: 9 additions & 5 deletions UPGRADE-2.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ UPGRADE FROM 2.0 to 2.1

After (PHP):

<?php if ($view['session']->getFlashBag()->has(FlashBagInterface::NOTICE)): ?>
<?php foreach ($view['session']->getFlashBag()->get(FlashBagInterface::NOTICE, true) as $notice): ?>
<?php if ($view['session']->getFlashBag()->has(FlashBag::NOTICE)): ?>
<?php foreach ($view['session']->getFlashBag()->get(FlashBag::NOTICE, true) as $notice): ?>
<div class="flash-notice">
<?php echo $notice; ?>
</div>
Expand All @@ -71,17 +71,21 @@ UPGRADE FROM 2.0 to 2.1

After (Twig): (needs review)

{% if app.session.getFlashBag.has(FlashBagInterface::NOTICE) %}
{% for flashMessage in app.session.getFlashBag().get(FlashBagInterface::NOTICE, true) %}
{% if app.session.getFlashBag.has(FlashBag::NOTICE) %}
{% for flashMessage in app.session.getFlashBag().get(FlashBag::NOTICE, true) %}
<div class="flash-notice">
{{ flashMessage }}
</div>
{% endforeach %}
{% endif %}

* [HttpFoundation] Session storage drivers should inherit from SessionStorage\AbstractSessionStorage.

* [HttpFoundation] SessionStorage\PDOSessionStorage - FlashBagInterface required in constructor.

* [HttpFoundation] Session storage drivers should inherit from SessionStorage\AbstractSessionStorage.
* [HttpFoundation] SessionStorage\ArraySessionStorage - FlashBagInterface required in constructor.

* [HttpFoundation] Any session storage drive that wants to use non-native PHP save handlers should
implement SessionStorage\SessionSaveHandlerInterface

* [FrameworkBundle] The service session.storage.native is now called session.storage.nativefile