Commit Graph

13236 Commits

Author SHA1 Message Date
Florin Patan
5377290fbf Micro-optimization 2013-02-04 13:46:31 +01:00
Fabien Potencier
2d2b9bc1d0 [FrameworkBundle] removed extra whitespaces 2013-02-04 13:45:57 +01:00
Fabien Potencier
c9e967f274 merged branch inmarelibero/2.2-RouterDebug (PR #6948)
This PR was merged into the 2.2 branch.

Commits
-------

95f0202 [FrameworkBundle] fixed wrong indentation on route debug output

Discussion
----------

[FrameworkBundle] fixed wrong indentation on route debug output

I'm not sure this is something to fix, but with this PR the debug output for a single route is like the lower part of the image, instead of the currently displayed upper part.

![output](https://f.cloud.github.com/assets/254808/120850/f2b6e8ce-6d43-11e2-9fdd-24200eb2e93b.jpg)
2013-02-04 13:42:35 +01:00
Fabien Potencier
223cc6f7c7 Merge branch '2.2'
* 2.2:
  fixed regression in the Finder component (it was possible to use it without using exec before, closes #6357)
  fixed a circular call (closes #6864)
  typo
  [Security] [Tests] added unit tests for the UserPasswordValidator class and made the validator service for the UserPassword constraint configurable.
  fixed wrong indentation
  tweaked previous commit
  [HttpKernel] Fix the URI signer (closes #6801)
  Add Arabic translations.
  [HttpKernel] fixed regression when rendering an inline controller and passing some objects  (closes #6822)
  [FrameworkBundle] fixed typo
  renamed some classes and Twig functions to more descriptive names (refs #6871)
  Classcollectionloader: fix traits + enhancements
  Fix a deprecated method call in the tests
  Update `composer.json` files: - to allow versions ~2.2 (>=2.2,<3.0) of Doctrine DBAL, ORM & Common - fixed Propel1 versions difference between main and bridge files - fixed Twig versions difference between main and bridge files - to allow versions ~1.11 (>=1.11,<2.0) of Twig - fixed Locale ext-intl version to accept all, not non-existing version
  Correct comment in NativeSessionStorage regarding session.save_handler
  [Security] Add PHPDoc to AuthenticationEvents
2013-02-04 13:42:02 +01:00
Fabien Potencier
bf8b0f7a5f Merge branch '2.1' into 2.2
* 2.1:
  fixed a circular call (closes #6864)
  Correct comment in NativeSessionStorage regarding session.save_handler
  [Security] Add PHPDoc to AuthenticationEvents
2013-02-04 13:41:52 +01:00
Fabien Potencier
04cb480e30 Merge branch '2.0' into 2.1
* 2.0:
  fixed a circular call (closes #6864)
2013-02-04 13:41:37 +01:00
Fabien Potencier
81aed8f5db merged branch fabpot/exec-fix (PR #6882)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #6882).

Commits
-------

b8ef96e [Finder] fixed regression in the Finder component (it was possible to use it without using exec before, closes #6357)

Discussion
----------

[Finder] fixed regression in the Finder component (it was possible to use it without using exec before, closes #6357)

| Q             | A
| ------------- | ---
| Bug fix?      | yes (fixed a BC break)
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #6357
| License       | MIT
| Doc PR        | n/a
2013-02-04 13:41:13 +01:00
Fabien Potencier
3166e5b763 fixed regression in the Finder component (it was possible to use it without using exec before, closes #6357) 2013-02-04 13:41:13 +01:00
Fabien Potencier
1eab5151b3 merged branch fabpot/container-dumper-fix (PR #6959)
This PR was submitted for the 2.2 branch but it was merged into the 2.0 branch instead (closes #6959).

Commits
-------

ad889c9 [DependencyInjection] fixed a circular call (closes #6864)

Discussion
----------

[DependencyInjection] fixed a circular call (closes #6864)

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #6864
| License       | MIT
| Doc PR        | n/a
2013-02-04 13:39:09 +01:00
Fabien Potencier
74f2fcfed0 fixed a circular call (closes #6864) 2013-02-04 13:39:09 +01:00
Hugo Hamon
35b62ac4cd [Security] renamed Constraint namespace to Constraints for validator classes in order to be consistent with the whole current validator API. 2013-02-04 13:20:14 +01:00
Fabien Potencier
df4188a921 merged branch hhamon/user_password_validator_unit_test (PR #6947)
This PR was merged into the 2.2 branch.

Commits
-------

a433ba2 [Security] [Tests] added unit tests for the UserPasswordValidator class and made the validator service for the UserPassword constraint configurable.

Discussion
----------

[Security] [Tests] added unit tests for the UserPasswordValidator class ...

...and made the validator service for the UserPassword constraint configurable.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -
2013-02-04 12:35:48 +01:00
Fabien Potencier
4284f19bd3 merged branch fabpot/render-with-objects (PR #6942)
This PR was merged into the 2.2 branch.

Commits
-------

8f8d6cf [HttpKernel] fixed regression when rendering an inline controller and passing some objects  (closes #6822)

Discussion
----------

[HttpKernel] fixed regression when rendering an inline controller and passing some objects (closes #6822)

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #6822
| License       | MIT
| Doc PR        | n/a
2013-02-04 12:07:48 +01:00
Fabien Potencier
21af63a2ff merged branch seferov/master (PR #6956)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #6956).

Commits
-------

15625b4 typo

Discussion
----------

typo
2013-02-04 10:48:57 +01:00
seferov
16b45d68e5 typo 2013-02-04 10:48:57 +01:00
inmarelibero
95f0202fac [FrameworkBundle] fixed wrong indentation on route debug output 2013-02-02 15:13:57 +01:00
Hugo Hamon
a433ba2f75 [Security] [Tests] added unit tests for the UserPasswordValidator class and made the validator service for the UserPassword constraint configurable. 2013-02-02 14:28:44 +01:00
Fabien Potencier
98752f6c36 merged branch inmarelibero/patch-1 (PR #6945)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #6945).

Commits
-------

a2a2f54 fixed wrong indentation

Discussion
----------

fixed wrong indentation
2013-02-01 23:03:50 +01:00
Emanuele Gaspari
507ceac726 fixed wrong indentation 2013-02-01 23:03:50 +01:00
Fabien Potencier
175827713a tweaked previous commit 2013-02-01 22:56:52 +01:00
Victor
3fee9c0f80 [HttpKernel] Fix the URI signer (closes #6801) 2013-02-01 22:56:31 +01:00
Fabien Potencier
0c3d0db5de merged branch franmomu/add_phpdoc_to_authentication_events (PR #6831)
This PR was merged into the 2.1 branch.

Commits
-------

e7624b6 [Security] Add PHPDoc to AuthenticationEvents

Discussion
----------

[Security] Added PHPDoc to AuthenticationEvents

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |
2013-02-01 22:52:20 +01:00
Fabien Potencier
3848e84c24 merged branch mahmouds/arabic-support-master (PR #6944)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #6944).

Commits
-------

2b850b5 [Form] [Validator] [Security] Add Arabic translations.

Discussion
----------

[Form] [Validator] [Security] Add Arabic translations.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | ~
| License       | MIT
| Doc PR        | ~
2013-02-01 22:37:51 +01:00
Mahmoud Mostafa
edd5a85303 Add Arabic translations. 2013-02-01 22:37:51 +01:00
Fabien Potencier
8f8d6cfb15 [HttpKernel] fixed regression when rendering an inline controller and passing some objects (closes #6822) 2013-02-01 17:19:49 +01:00
Fabien Potencier
bb5c8f4777 [FrameworkBundle] fixed typo 2013-02-01 17:07:52 +01:00
Fabien Potencier
9dd43966c1 merged branch fabpot/renderer-renaming (PR #6925)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #6925).

Commits
-------

0586643 renamed some classes and Twig functions to more descriptive names (refs #6871)

Discussion
----------

renamed some classes and Twig functions to more descriptive names (refs #6871)

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #6871
| License       | MIT
| Doc PR        | symfony/symfony-docs#2205

Todo:

 - [x] update the docs

In #6871, @kriswallsmith wondered if the names used for the ESI/HIncludes sub-framework were meaningful enough.

I agree that this was not the case and I propose to remove the notion of **sub-requests** in favor of **fragments**. This sub-framework is a way to render fragments of a resource (the fact that it's done via another request is an implementation detail).

With that decision, all names can be renamed and are probably more meaningful. Some examples:

* `HttpContentRenderer` -> `FragmentHandler`
* `RouterProxyListener` -> `FragmentListener`
* `router_proxy` -> `fragments` (configuration entry)
* `DefaultRenderingStrategy` -> `InlineFragmentRenderer`

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

by fabpot at 2013-01-31T09:50:14Z

I forgot to mention that this renaming will also probably help documenting the feature as understanding the notion of a fragment is probably easier.

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

by Tobion at 2013-01-31T14:18:40Z

I'd like to say again that the word `render` in `FragmentRenderingStrategy` does not fit because it's not about rendering (that's left to the templating) of a fragment.
I suggest to rename it to `FragmentInclusionStrategy` because it defines the strategy to include the fragment.
This is also consistent with every strategy there is:
- ESI: `<esi:include`
- SSI: `<!--#include file="header.shtml" -->`
- hinclude (even in the name)
- inline (similar to phps `include()`)

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

by fabpot at 2013-01-31T14:48:07Z

I've just renamed `FragmentRenderer` to `FragmentHandler` and strategies like `EsiFragmentRenderingStrategy` to `EsiFragmentRenderer` (and everything is put into a new `Fragment` sub-namespace).

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

by fabpot at 2013-01-31T21:11:44Z

I've reverted the Twig function name change as the current name is more expressive with its arguments: `render(controller(...))` or `render_esi(url(...))`.
2013-02-01 15:17:21 +01:00
Fabien Potencier
c72e471c65 renamed some classes and Twig functions to more descriptive names (refs #6871)
HttpContentRenderer has been renamed to FragmentHandler.
The RendererStrategy subnamespace has been renamed to Fragment.
The strategy classes now have Fragment in their names.
ProxyRouterListener has been renamed to FragmentListener
The router_proxy configuration entry has been renamed to fragments.
2013-02-01 15:17:20 +01:00
Fabien Potencier
c85ec8b14a merged branch vicb/classcollectionloader (PR #6258)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #6258).

Commits
-------

d4acd6d Classcollectionloader: fix traits + enhancements

Discussion
----------

Classcollectionloader: fix traits + enhancements

Commits:

- some tweaks
- generates smaller cache files (20% decrease for the SE)
- fix traits dependency - thanks php for consistency https://bugs.php.net/bug.php?id=61554

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

by vicb at 2012-12-11T07:56:07Z

@stloyd @fabpot thanks for the useful reviews, everything should be fixed now.

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

by vicb at 2012-12-11T10:03:48Z

Should be ready.

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

by vicb at 2013-01-15T21:05:42Z

@fabpot I initially marked this PR for 2.3 but it contains a fix for traits, should you merge it ?

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

by vicb at 2013-01-23T20:09:32Z

@fabpot could this be in 2.2 ?

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

by vicb at 2013-02-01T14:07:08Z

@fabpot fixed
2013-02-01 15:12:50 +01:00
Victor Berchet
507d0c43d5 Classcollectionloader: fix traits + enhancements 2013-02-01 15:12:50 +01:00
Fabien Potencier
d8bceab927 merged branch vicb/fixvalid (PR #6938)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #6938).

Commits
-------

b279dcb [Validator] Fix a deprecated method call in the tests

Discussion
----------

[Validator] Fix a deprecated method call in the tests

BUG FIX - Travis happier ?

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

by stloyd at 2013-02-01T12:23:18Z

This should go to `2.2` I guess... =)

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

by vicb at 2013-02-01T12:25:43Z

Well there has been no official announcement for the 2.2 branch I think ?
I hope that some PR pending for master will go into 2.2 anyway ?

/cc @fabpot

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

by vicb at 2013-02-01T12:38:35Z

C'mon Travis, aren't you allowed to fail for 5.5 ?

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

by stloyd at 2013-02-01T12:43:42Z

@vicb error != failed ;-) Yet I agree, that now it's more confusing than before this new status...

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

by fabpot at 2013-02-01T13:27:11Z

I will merged it into 2.2. 2.2 is entering the RC phase, so no more modifications will be merged.
2013-02-01 14:27:32 +01:00
Victor
df9db258c1 Fix a deprecated method call in the tests 2013-02-01 14:27:32 +01:00
Fabien Potencier
6ccaa65bb8 merged branch stloyd/feature/doctrine_versions (PR #6632)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes #6632).

Commits
-------

a1c0ff5 Update `composer.json` files: - to allow versions ~2.2 (>=2.2,<3.0) of Doctrine DBAL, ORM & Common - fixed Propel1 versions difference between main and bridge files - fixed Twig versions difference between main and bridge files - to allow versions ~1.11 (>=1.11,<2.0) of Twig - fixed Locale ext-intl version to accept all, not non-existing version

Discussion
----------

Update `composer.json` files

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

by fabpot at 2013-01-09T17:55:54Z

When will Doctrine 2.4 be released? If not in the next couple of weeks, this PR cannot be merged as we need to ship Symfony 2.2 with a stable version of Doctrine.

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

by stof at 2013-01-09T18:13:59Z

@fabpot This allows to use Doctrine 2.4. It does not require to use 2.4. Actually, as Doctrine releases are BC, I would even vote for using ``~2.2`` as requirement

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

by fabpot at 2013-01-10T08:18:52Z

If the Doctrine is fine with `~2.2`, let's do that. @beberlei Can you confirm?

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

by stloyd at 2013-01-10T08:30:19Z

As Doctrine latest release is `2.3.2` maybe for Symfony `2.2` we should increase to `~2.3` not `~2.2` ?

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

by stof at 2013-01-10T09:15:00Z

@stloyd Why should we force using 2.3 when we don't require any of the 2.3 features ? Composer will use the most recent package matching the constraint anyway, so 2.2 will not be used unless someone forbids 2.3 in another package.

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

by stloyd at 2013-01-29T19:24:09Z

@fabpot ping
2013-02-01 10:33:54 +01:00
Joseph Bielawski
53c70548a0 Update composer.json files: - to allow versions ~2.2 (>=2.2,<3.0) of Doctrine DBAL, ORM & Common - fixed Propel1 versions difference between main and bridge files - fixed Twig versions difference between main and bridge files - to allow versions ~1.11 (>=1.11,<2.0) of Twig - fixed Locale ext-intl version to accept all, not non-existing version 2013-02-01 10:33:53 +01:00
Fabien Potencier
d0aaf62557 updated the branch alias in composer files 2013-01-31 22:39:01 +01:00
Fabien Potencier
f39cb9524f merged branch TravisCarden/master (PR #6933)
This PR was merged into the master branch.

Commits
-------

924c256 Remove executable bit from all PHP files

Discussion
----------

Remove executable bit from all PHP files

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   |
| Fixed tickets |
| License       | MIT
| Doc PR        |

Apologies if I haven't got the protocol quite right here. This is my first interaction with this project.

By the way, I've noticed a non-trivial number of pull requests to remove executable bits. Could there be an automated test to prevent files getting into the repo with them on in the first place?
2013-01-31 19:43:29 +01:00
TravisCarden
924c25642b Remove executable bit from all PHP files 2013-01-31 12:27:04 -06:00
Fabien Potencier
4b7575464c merged branch dlsniper/validator-deprecation (PR #6929)
This PR was merged into the master branch.

Commits
-------

d0341e8 Replaced call that triggers deprecated error

Discussion
----------

[Validator][ChoiceValidator] Replaced call that triggers deprecated error

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | ~
| License       | MIT
| Doc PR        | ~

This removes the deprecation warnings from the ChoiceValidator.
2013-01-31 16:01:51 +01:00
Florin Patan
d0341e84ab Replaced call that triggers deprecated error 2013-01-31 14:13:11 +02:00
Sebastian Bergmann
6c00ffe90f Fugbix typo 2013-01-31 09:00:54 +01:00
Fabien Potencier
8c804c79aa merged branch igorw/session-save-handler-comment (PR #6922)
This PR was merged into the 2.1 branch.

Commits
-------

d6c0455 Correct comment in NativeSessionStorage regarding session.save_handler

Discussion
----------

Correct comment in NativeSessionStorage regarding session.save_handler

It's save_handler, not save_handlers.
2013-01-31 08:57:23 +01:00
Fabien Potencier
63c61eef7d merged branch stof/fix_null_logger (PR #6920)
This PR was merged into the master branch.

Commits
-------

b1d1168 Fixed the NullLogger to implement the HttpKernel interface again

Discussion
----------

Fixed the NullLogger to implement the HttpKernel interface again

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no (reverting one introduced by mistake)
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        | n/a

This BC breaking mistake has been reported in https://github.com/schmittjoh/JMSSecurityExtraBundle/pull/105#issuecomment-12908659
2013-01-31 08:55:22 +01:00
Fabien Potencier
7327258d71 merged branch jfsimon/finder-iterator-keys-fix (PR #6924)
This PR was merged into the master branch.

Commits
-------

ed3a875 [Finder] Fixed test

Discussion
----------

[Finder] Fixed test

Fixed tests broken by PR #6911.
Iterator keys were considered as incremented index in `FilePathsIteratorTest`.
2013-01-31 08:40:52 +01:00
Jean-François Simon
ed3a875de0 [Finder] Fixed test 2013-01-31 08:21:20 +01:00
Igor Wiedler
d6c0455c11 Correct comment in NativeSessionStorage regarding session.save_handler
It's save_handler, not save_handlers.
2013-01-30 22:06:00 +01:00
Christophe Coevoet
b1d1168d26 Fixed the NullLogger to implement the HttpKernel interface again 2013-01-30 20:59:27 +01:00
Fabien Potencier
ef5300d637 merged branch jfsimon/finder-iterator-keys-fix (PR #6911)
This PR was merged into the master branch.

Commits
-------

ef593fa [Finder] Fixed iterator keys
d16e28a [Finder] Added iterator keys test

Discussion
----------

[Finder] Fixes iterator keys

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #6891
| License       | MIT

Previous PR I did on finder introduced a BR break (finder iterator keys must be the pathname of the file, not an incremented index). This PR adds a test to ensure this wont be broken again and fixes the BC break.
2013-01-29 21:31:06 +01:00
Jean-François Simon
ef593fa8d8 [Finder] Fixed iterator keys 2013-01-29 19:42:39 +01:00
Jean-François Simon
d16e28acaf [Finder] Added iterator keys test 2013-01-29 19:30:27 +01:00
Fabien Potencier
4ecaa10f8d [TwigBridge] added the render tag deprecation to the CHANGELOG for 3.0 2013-01-28 18:29:00 +01:00