improved nginx config. It's secure by default now.
Create Application::on() method to add an event listener
[Translation] Set local_fallback to en by default
[Doc][Translation] Set local_fallback to en by default
Added use statement for HttpExceptionInterface
merged branch drock/exception-wrapper-use-HttpExceptionInterface (PR #530)

This PR was merged into the master branch.

Commits
-------

7250695 Added use statement for HttpExceptionInterface

Discussion
----------

Added use statement for HttpExceptionInterface

The Exception Wrapper recent refactoring added a reference to HttpExceptionInterface but not a use statement for it.  This can cause the instance of check in there to fail causing you to always get a 500 error code.
merged branch lyrixx/translation (PR #498)

This PR was merged into the master branch.

Commits
-------

95a6d3d [Doc][Translation] Set local_fallback to en by default
0f7b16c [Translation] Set local_fallback to en by default

Discussion
----------

[Translation] Set local_fallback to en by default

---------------------------------------------------------------------------

by lyrixx at 2012-09-24T17:01:23Z

Tests are ok.

---------------------------------------------------------------------------

by stof at 2012-09-24T19:01:06Z

This is wrong IMO. What about users who don't want to use a fallback locale ?

---------------------------------------------------------------------------

by lyrixx at 2012-09-24T19:36:53Z

@stof cf : https://github.com/symfony/symfony/blob/0187a1ac9497428d934f50233f43538163117c01/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php#L354
Add note to twig docs that the baseUrl must be prepended
merged branch igorw/twig-render-baseurl (PR #529)

This PR was squashed before being merged into the master branch (closes #529).

Commits
-------

c65e756 Add note to twig docs that the baseUrl must be prepended

Discussion
----------

Add note to twig docs that the baseUrl must be prepended

---------------------------------------------------------------------------

by igorw at 2012-11-05T17:52:25Z

Refs #524.

---------------------------------------------------------------------------

by igorw at 2012-11-05T19:48:48Z

Changed `path` to `url` in the example.
fixed a fatal error when the security provider is created without any firewalls (which of course does not make sense but anyways, refs #473)
forced the security to be setup properly when accessed outside of the handling of a request (refs #473)
added information about how to configure the default security encoder (closes #519)
added a note about how to use the security outside the handling of a request (refs #473)
Merge remote-tracking branch 'mvrhov/nginx'

* mvrhov/nginx:
  improved nginx config. It's secure by default now.

Conflicts:
	doc/web_servers.rst
merged branch GromNaN/on2 (PR #441)

This PR was merged into the master branch.

Commits
-------

c4975cc Create Application::on() method to add an event listener

Discussion
----------

Add method Application::on($eventName, $callback, $priority)

Simplify PR #435

This method is a shortcut to add a listener to the event dispatcher.

``` php
<?php
use Symfony\Component\Security\Http\SecurityEvents;

$app->on(SecurityEvents::SWITCH_USER, function ($event) {
    // ...
});
```

---------------------------------------------------------------------------

by fabpot at 2012-10-24T20:34:12Z

Can you add some useful examples in the documentation before I merge this PR? Thanks.

---------------------------------------------------------------------------

by GromNaN at 2012-10-24T21:57:48Z

Which part of the documentation would be the most relevant ?

I can write a cookbook on how to send an email when someone login to the application.
fixed tests
added some code that should be uncommented when Silex will use Symfony 2.2
Cookbook recipe on sub-requests, closes #506, #507
merged branch igorw/sub-requests-doc (PR #528)

This PR was squashed before being merged into the master branch (closes #528).

Commits
-------

454d49e Cookbook recipe on sub-requests, closes #506, #507

Discussion
----------

Cookbook recipe on sub-requests, closes #506, #507

---------------------------------------------------------------------------

by ChrisRiddell at 2012-11-04T23:28:09Z

This is very useful, maybe an example of the "Lack of container scopes" could be good as it got confusing.

---------------------------------------------------------------------------

by igorw at 2012-11-05T00:09:54Z

@ChrisRiddell Good point, I'll add an example to illustrate it. Cheers!

---------------------------------------------------------------------------

by igorw at 2012-11-06T13:06:49Z

I have made the requested changes.
Set SCRIPT_FILENAME after including params

I think that some versions or distributions of nginx set SCRIPT_FILENAME in the
fastcgi_params file (certainly ubuntu/debian), overriding anything previously set.