Update composer.json

Bump doctrine dependency for symfony 2.1 users.
merged branch guilhermeblanco/patch-1 (PR #498)

This PR was merged into the 2.1 branch.

Commits
-------

b118637 Update composer.json

Discussion
----------

Update composer.json

Bump doctrine dependency for symfony 2.1 users.
updated VENDORS for 2.1.8
redirect /app.php to prevent duplicate content

This time it's compatible with Apache < 2.3.9 by not using the END flag. It also features default compatibility with apache aliases (inspired by Zend). And it improves the rewriting performance for the homepage by preventing the process to apply to each DirectoryIndex file
removed useless "use" statement
Refactoring isMethod, bind and Flash

Changed bindRequest by bind
made the startpage work when mod_rewrite is not available
merged branch Tobion/htaccess (PR #503)

This PR was merged into the 2.2 branch.

Commits
-------

ea255c0 made the startpage work when mod_rewrite is not available
e97e7fa redirect /app.php to prevent duplicate content

Discussion
----------

redirect /app.php to prevent duplicate content

Improved version of #497. This time it's compatible with Apache < 2.3.9 by not using the END flag. It also features default compatibility with apache aliases (inspired by [Zend](https://github.com/zendframework/ZendSkeletonApplication/blob/master/public/.htaccess)). And it improves the rewriting performance for the homepage by preventing the process to apply to each DirectoryIndex file.

Now I also could also make the startpage work when mod_rewrite is not available.

I tested it thoroughly and also debugged apache rewriting to see what's happening.
It was quite hard to find out how to achieve all that. [This resource](http://stackoverflow.com/questions/7798099/how-to-block-multiple-mod-rewrite-passes-or-infinite-loops-in-a-htaccess-cont) helped quite a bit.

May be good if someone else can confirm all works.

Example behavior for each scenario:

With mod_rewrite:
- `/` -> internally rewritten to use front controller (`app.php`)
- `/path` -> internally rewritten to use front controller
- `/app.php/path` -> external permanent redirect to `/path` to prevent duplicate content
- `/app.php` or `/app.php/`-> external permanent redirect to `/` to prevent duplicate content
- `/app.phpF` stays as-is

Without mod_rewrite but with mod_alias (default module):
- `/` -> external temporary redirect to `/app.php/` so it's explicit and all generated links on the startpage also work with the base path prepended
- `/path` -> stays as-is and would probably return a 404 (we cannot safely and easily redirect with mod_alias to `/app.php/path` because we don't know if the request references a real file like CSS)
- `/app.php/path` -> stays as-is and works because the front controller is given
- `/app.php` -> stays as-is and works because the front controller is given

In an aliased environment with mod_rewrite:
- `/myproject/` -> internally rewritten to use front controller (`app.php`)
- `/myproject/path` -> internally rewritten to use front controller
- `/myproject/app.php/path` -> external permanent redirect to `/myproject/path` to prevent duplicate content
- `/myproject/app.php` -> external permanent redirect to `/myproject/` to prevent duplicate content

In an aliased environment without mod_rewrite:
- `/myproject/` -> stays as-is and works because it uses the DirectoryIndex definition (but the links will not work)
- `/myproject/path` -> stays as-is and would probably return a 404 (except there is such a file)
- `/myproject/app.php/path` -> stays as-is and works because the front controller is given
- `/myproject/app.php` -> stays as-is and works because the front controller is given

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

by colinfrei at 2013-03-01T12:10:59Z

Tested as well on Apache 2.2.16

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

by Tobion at 2013-03-01T12:42:58Z

ping @gimler @vxf @neilferreira considering you commented on the intial PR

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

by gimler at 2013-03-01T12:51:35Z

it works for me server version: Apache/2.2.22 (Ubuntu)

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

by Tobion at 2013-03-01T14:33:20Z

@gimler did you also test it in an aliased environment?

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

by gimler at 2013-03-01T14:38:27Z

no only simple vhost

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

by jalliot at 2013-03-02T15:48:08Z

@Tobion if it is merged here, you should also probably submit an equivalent PR to symfony's [ApacheMatcherDumper](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Routing/Matcher/Dumper/ApacheMatcherDumper.php).

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

by Tobion at 2013-03-02T21:11:40Z

@jalliot you are right. Thanks for the hint. The apache dumper is also quite strange. For example if you request it with `/app.php/...` the dumped routes wont even be used.

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

by Tobion at 2013-03-21T14:27:51Z

Now I also could also make the startpage work when mod_rewrite is not available.
I also updated the examples in the PR description. @fabpot it's tested and should be ready.
merged branch Garfield-fr/2.2 (PR #508)

This PR was merged into the 2.2 branch.

Commits
-------

3550f5c Refactoring isMethod, bind and Flash

Discussion
----------

Refactoring isMethod, bind and Flash and bindRequest (2.2)

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

by hacfi at 2013-03-19T14:11:33Z

PR looks good to me
merged branch aerialls/patch-1 (PR #504)

This PR was merged into the 2.1 branch.

Commits
-------

4806cf5 removed useless "use" statement

Discussion
----------

removed useless "use" statement
add info about changed htaccess file
merged branch Tobion/patch-2 (PR #511)

This PR was merged into the 2.2 branch.

Commits
-------

7a7eac1 add info about changed htaccess file

Discussion
----------

add info about changed htaccess file
updated VENDORS for 2.1.9
added loader variable typehint for easier manipulation in IDEs
merged branch thunderer/autoload-class-typehint (PR #519)

This PR was submitted for the master branch but it was merged into the 2.1 branch instead (closes #519).

Discussion
----------

Added $loader variable typehint for easier manipulation in IDEs.

Not all project dependencies are managed by Composer. Common solutions for (company / private) libraries and bundles are git submodules or even symlinked directories.

This PR adds typehint for `$loader` variable inside `app/autoload.php` so people won't need to search for information on what class it is and what interface it exposes when trying to add their code to autoloader.

Commits
-------

67e9d69 added loader variable typehint for easier manipulation in IDEs
Add commented framework.validation.cache = apc to prod config
merged branch adrienbrault/patch-1 (PR #520)

This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #520).

Discussion
----------

Add commented framework.validation.cache = apc to prod config

Hey,

After some XHProf, I found that this setting was important to get the best performance in production.

I think it make sense to have it as a comment like doctrine caches.

Commits
-------

2bfdaa0 Add commented framework.validation.cache = apc to prod config
updated VENDORS for 2.2.1
Set composer package type to project
merged branch Seldaek/composertype (PR #527)

This PR was merged into the master branch.

Discussion
----------

Set composer package type to project

As per https://github.com/composer/composer/commit/a26bababe03b2b3826bd56c99313aa9289a2af91

Commits
-------

4cb448a Set composer package type to project