accept read-only models in ModelChoiceList
clean file docs in Propel1 fixtures
[HttpFoundation] Micro-optimisation.
[PhpUnit] Fix the path to the boostrap files in the components
[HttpFoundation] Further micro-optimization.
merged branch vicb/component_tests (PR #3736)

Commits
-------

234ce4d [PhpUnit] Fix the path to the boostrap files in the components

Discussion
----------

[PhpUnit] Fix the path to the boostrap files in the components
merged branch drak/sessionarray (PR #3735)

Commits
-------

8dd2c27 [HttpFoundation] Further micro-optimization.
54c5d5e [HttpFoundation] Micro-optimisation.

Discussion
----------

[HttpFoundation] Micro-optimisation.

Ref #3729

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

by robocoder at 2012-03-30T11:45:02Z

If you pre-flip your $validOptions arrays, you can use isset() instead of in_array() in the loop.

This changes the performance from O(m * n) to O(m).

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

by drak at 2012-03-30T11:53:24Z

@robocoder What is the expense of the array_flip though?

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

by robocoder at 2012-03-30T11:56:21Z

Why would you use array_flip if the array doesn't change?  Change $validOptions = array('x', 'y', ...) to $validOptions = array('x' => 0, 'y' => 0, ...), then change the in_array() to use isset().

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

by stof at 2012-03-30T11:57:08Z

@drak a loop. But it will be done only once before the other loop so it will be O(n + m) instead of O(m * n)

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

by drak at 2012-03-30T12:00:47Z

Ok :)
[Routing] removed code that was not ready to be pushed
updated reference to tests
[Finder] Added sortBy options based on accessed, changed and modified times
fixed CS
updated license blocks
fixed line break to LF
merged branch eriksencosta/cs-fixes (PR #3750)

Commits
-------

cf67870 fixed line break to LF
013f998 updated license blocks
bec231f fixed CS

Discussion
----------

fixed CS
merged branch lsmith77/HttpFoundation_test (PR #3744)

Commits
-------

925b65d updated reference to tests

Discussion
----------

updated reference to tests

this is basically the format used in all other components.

however i am not sure if it really makes sense to list ``phpunit -c src/Symfony/Component/HttpFoundation/``, since this relative path could be confusing for anyone using the standalone components. But even if using ``symfony/symfony`` the path is wrong relative to the location of the README.md.
merged branch ruimarinho/sort_by_time (PR #3745)

Commits
-------

dcf82d7 [Finder] Added sortBy options based on accessed, changed and modified times

Discussion
----------

[Finder] Added sortBy options based on accessed, changed and modified times

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
merged branch havvg/hotfix/propel-modelchoice-readonly-models (PR #3731)

Commits
-------

64c7183 clean file docs in Propel1 fixtures
97ba218 accept read-only models in ModelChoiceList

Discussion
----------

accept read-only models in ModelChoiceList

Ping @willdurand

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

by willdurand at 2012-03-30T08:57:14Z

:+1:
fixed CS (missing or misplaced license blocks)
merged branch eriksencosta/cs-fixes (PR #3757)

Commits
-------

2cac50d fixed CS (missing or misplaced license blocks)

Discussion
----------

fixed CS (missing or misplaced license blocks)
moved event dispatcher classes to the EventDispatcher component