diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2011-12-05 10:21:19 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2011-12-05 10:21:19 +0100 |
commit | 723f79a546dcb8d3e6180f375689fb6071b7120c (patch) | |
tree | 6e8f8dbafa06bde58570b04ee187d026a90186ed | |
parent | 94dc616c5f298fa0d93bf6f3d2fe7941434c2b8a (diff) | |
parent | 8432044d96c3c8b49149d027ee1e2eca900d8fc0 (diff) | |
download | symfony-security-723f79a546dcb8d3e6180f375689fb6071b7120c.zip symfony-security-723f79a546dcb8d3e6180f375689fb6071b7120c.tar.gz symfony-security-723f79a546dcb8d3e6180f375689fb6071b7120c.tar.bz2 |
merged branch jmikola/2.0-LoaderResolverInterface (PR #2785)
Commits
-------
7c1cbb9 [Config] Use LoaderResolverInterface for type-hinting
48b084e fixed typo
8ad94fb merged branch hhamon/doctrine_bridge_cs (PR #2775)
240796e [Bridge] [Doctrine] fixed coding conventions.
7cfc392 check for session before trying to authentication details
648fae7 merged branch proofek/domcrawlerform-radiodisabled (PR #2768)
3976b7a [DoctrineBridge] fixed CS
9a04783 merged branch beberlei/SecurityEntityRepositoryIdentifierFix (PR #2765)
3c83b89 [DoctrineBridge] Catch user-error when the identifier is not serialized with the User entity.
36c7d03 Fixed GH-2720 - Fix disabled atrribute handling for radio form elements
Discussion
----------
[Config] Use LoaderResolverInterface for type-hinting
```
Bug fix: no
Feature addition: no
Backwards compatibility break: yes
Symfony2 tests pass: yes
Fixes the following tickets: -
```
I've listed this as a BC break because we're changing the argument type-hint, but I think it's unlikely to affect anyone.
-rw-r--r-- | Http/Firewall/ContextListener.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Http/Firewall/ContextListener.php b/Http/Firewall/ContextListener.php index bf3cba6..865cc04 100644 --- a/Http/Firewall/ContextListener.php +++ b/Http/Firewall/ContextListener.php @@ -91,6 +91,10 @@ class ContextListener implements ListenerInterface if (HttpKernelInterface::MASTER_REQUEST !== $event->getRequestType()) { return; } + + if (!$event->getRequest()->hasSession()) { + return; + } if (null !== $this->logger) { $this->logger->debug('Write SecurityContext in the session'); |