improved nginx config. It's secure by default now.
Add a `SerializerServiceProvider`.

Usage
-----

```php
<?php

use Silex\Application;
use Silex\Provider\SerializerServiceProvider;
use Symfony\Component\HttpFoundation\Response;

$app = new Application();

$app->register(new SerializerServiceProvider);

// only accept content types supported by the serializer via the assert method.
$app->get("/pages/{id}.{_format}", function ($id) use ($app) {
    // assume a page_repository service exists that returns Page objects. The
    // object returned has getters and setters exposing the state.
    $page = $app['page_repository']->find($id);
    $format = $app['request']->getFormat();

    if (!$page instanceof Page) {
        $this->abort("No page found for id: $id");
    }

    return new Response($app['serializer']->serialize($page, $format), 200, array(
        "Content-Type" => $app['request']->getMimeType($format)
    ));
})->assert("_format", "xml|json")
  ->assert("id", "\d+");
```
Make the event dispatcher class configurable.
Create Application::on() method to add an event listener
Fix typo
merged branch Adel-E/patch-3 (PR #444)

Commits
-------

5404593 Fix typo

Discussion
----------

Fix typo
added some missing use statements in the security docs (closes #445)
updated deps
Add SecurityServiceProvider to list of included providers
merged branch igorw/security-provider-link (PR #451)

Commits
-------

c543197 Add SecurityServiceProvider to list of included providers

Discussion
----------

Add SecurityServiceProvider to list of included providers
type uppercase Y
merged branch cordoval/patch-1 (PR #453)

Commits
-------

f6854bc type uppercase Y

Discussion
----------

type uppercase Y
updated deps
added a note in the docs
fixed the form provider
Add HttpFoundationExtension to FormServiceProvider.

This closes all of the issues with `$form->bind($request)` does not
work issues.
Updated FormServiceProvider documentation to not use the deprecated `bindRequest` method
merged branch henrikbjorn/form-httpfoundation (PR #458)

Commits
-------

1981d13 Updated FormServiceProvider documentation to not use the deprecated `bindRequest` method
a12b0cc Add HttpFoundationExtension to FormServiceProvider.

Discussion
----------

Add HttpFoundationExtension to FormServiceProvider.

This closes all of the issues with `$form->bind($request)` does not
work issues.

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

by stof at 2012-08-01T22:56:23Z

this fixes #457

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

by thomasjbradley at 2012-08-02T15:45:47Z

I'd love to have this merged soon. I've been recording a bunch of screen casts for my students and this bug is kinda a show-stopper. Thanks!

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

by alexandresalome at 2012-08-02T15:55:27Z

If you're in a hurry:

    cd /path/to/your/project
    cd vendor/silex/silex
    git remote add henrikbjorn https://github.com/henrikbjorn/Silex.git
    git fetch henrikbjorn
    git checkout henrikbjorn/form-httpfoundation

This will do the job temporarly

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

by bradlet at 2012-08-02T15:58:38Z

Thanks so much; I really appreciate it!

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

by bradlet at 2012-08-02T16:16:58Z

I'm a little confused. This update breaks form validation using the constraints array option, like in the Silex docs:

```php
<?php
$form = $app['form.factory']->createBuilder('form')
    ->add('name', 'text', array(
        'constraints' => array(new Assert\NotBlank(), new Assert\MinLength(5))
    ))
```

It throws a `Symfony\Component\OptionsResolver\Exception\InvalidOptionsException`.

Is this something that is no longer allowed within Silex?
Do we need to now make classes like in the Symfony Forms component documentation?
updated deps
updated to Symfony 2.1.0-RC1