Commit Graph

16250 Commits

Author SHA1 Message Date
Fabien Potencier
03ee37d11a minor #9909 [Validator] Updated lithuanian validator translation. (infro42)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9909).

Discussion
----------

[Validator] Updated lithuanian validator translation.

Updated lithuanian validator translation: changed 'vartotojas' to 'naudotojas' as it is more proper term.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| License       | MIT

Commits
-------

53a8621 Updated lithuanian validator translation: changed vartotojas to naudotojas as it is more proper term.
2013-12-31 11:35:31 +01:00
Aurelijus Rožėnas
b30083cebe Updated lithuanian validator translation: changed vartotojas to naudotojas as it is more proper term. 2013-12-31 11:35:30 +01:00
Fabien Potencier
3203793a6a added a missing namespace use statement 2013-12-31 09:21:53 +01:00
Fabien Potencier
28a8400867 feature #9251 [WIP] [FrameworkBundle] removed some more dependencies on the request service (fabpot)
This PR was merged into the 2.5-dev branch.

Discussion
----------

[WIP] [FrameworkBundle] removed some more dependencies on the request service

| Q             | A
| ------------- | ---
| Bug fix?      | kinda (see linked tickets)
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8915, #9185
| License       | MIT
| Doc PR        | n/a

/cc @kriswallsmith

Commits
-------

4f3d502 [FrameworkBundle] removed some more dependencies on the request service
2013-12-31 09:04:52 +01:00
Fabien Potencier
85eb588bd0 minor #9478 Fixed CSS (peterrehm)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9478).

Discussion
----------

Fixed CSS

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

Commits
-------

95cc5b8 Fixed CSS
2013-12-31 08:58:55 +01:00
Peter Rehm
eb27d50e01 Fixed CSS 2013-12-31 08:58:55 +01:00
Fabien Potencier
bee8a99c1a bug #9895 [Intl] Added round support for ROUND_CEILING, ROUND_FLOOR, ROUND_DOWN, ROUND_UP (pamil)
This PR was squashed before being merged into the 2.4 branch (closes #9895).

Discussion
----------

[Intl] Added round support for ROUND_CEILING, ROUND_FLOOR, ROUND_DOWN, ROUND_UP

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | yes
| BC breaks?    | no, actually it fixes some
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9838
| License       | MIT
| Doc PR        |

Adds support for 4 unsupported rounding modes (ROUND_CEILING, ROUND_FLOOR, ROUND_DOWN, ROUND_UP) in `NumberFormatter` from `Intl` component, so that `Symfony\Component\Form\Extension\Core\DataTransformer\IntegerToLocalizedStringTransformer` won't throw exception if `lib-intl` is not installed.

Commits
-------

f5fee9a [Intl] Added round support for ROUND_CEILING, ROUND_FLOOR, ROUND_DOWN, ROUND_UP
2013-12-31 08:52:30 +01:00
Kamil Kokot
f5fee9ac9b [Intl] Added round support for ROUND_CEILING, ROUND_FLOOR, ROUND_DOWN, ROUND_UP 2013-12-31 08:52:30 +01:00
Fabien Potencier
0ceefe4936 minor #9906 [Filesystem] addressed == -> === suggestion (cordoval)
This PR was merged into the 2.3 branch.

Discussion
----------

[Filesystem] addressed == -> === suggestion

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

https://github.com/symfony/symfony/pull/9899/files#r8592132

Commits
-------

0556f71 addressed == -> === suggestion
2013-12-31 08:33:24 +01:00
Joseph Bielawski
38287e76ed [HttpFoundation] Throw proper exception when invalid data is passed to JsonResponse class 2013-12-31 00:31:44 +01:00
Luis Cordova
0556f718a7 addressed == -> === suggestion 2013-12-30 18:30:14 -05:00
Fabien Potencier
63d226db12 minor #9897 fixed some PSR-0 class names (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

fixed some PSR-0 class names

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

Commits
-------

a38e2c0 fixes PSR-0 issues in tests
2013-12-30 22:38:15 +01:00
Fabien Potencier
b70503ce70 bug #9899 [Filesystem | WCM] 9339 fix stat on url for filesystem copy (cordoval)
This PR was merged into the 2.3 branch.

Discussion
----------

[Filesystem | WCM] 9339 fix stat on url for filesystem copy

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

supersedes https://github.com/symfony/symfony/pull/9863

Commits
-------

4fba412 adjusted behavior to always copy override on url files
2013-12-30 22:31:05 +01:00
Fabien Potencier
cf68eb425e bug #9589 [DependencyInjection] Fixed #9020 - Added support for collections in service#parameters (lavoiesl)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9589).

Discussion
----------

[DependencyInjection] Fixed #9020 - Added support for collections in service#parameters

Disclaimer: I made sure that tests are passing, but I am not sure how to test if it really works. By looking at the code, it should.

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

Commits
-------

462532e [DependencyInjection] Fixed #9020 - Added support for collections in service#parameters
2013-12-30 22:18:20 +01:00
Sébastien Lavoie
a2358e04bc Fixed #9020 - Added support for collections in service#parameters 2013-12-30 22:18:20 +01:00
Fabien Potencier
a38e2c042b fixes PSR-0 issues in tests 2013-12-30 22:13:42 +01:00
Fabien Potencier
9eaed35892 feature #9857 Form Debugger JavaScript improvements (WouterJ)
This PR was submitted for the 2.4 branch but it was merged into the 2.5-dev branch instead (closes #9857).

Discussion
----------

Form Debugger JavaScript improvements

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

Commits
-------

406756d Reverted Sfjs.toggle change
226ac7c Reverted new image
53f164f Fixed asset function
c763d65 Merge pull request #1 from bschussek/issue9857
5afbaeb [WebProfilerBundle] Enlarged the clickable area of the toggle button in the form tree
58559d3 [WebProfilerBundle] Moved toggle icon behind the headlines in the form debugger
a0030b8 [WebProfilerBundle] Changed toggle color back to blue and made headlines in the form debugger clickable
505c5be [WebProfilerBundle] Added "use strict" statements
ebf13ed [WebProfilerBundle] Inverted toggler images and improved button coloring
07994d5 [WebProfilerBundle] Improved JavaScript of the form debugger
11bfda6 [WebProfilerBundle] Vertically centered the icons in the form tree
52b1620 Fixed CS
f21dab2 Added error badge
111a404 Made sections collapsable
60b0764 Improved form tree
0e03189 Expand tree
2013-12-30 22:05:53 +01:00
WouterJ
d9bb4ff15e Reverted Sfjs.toggle change 2013-12-30 22:05:53 +01:00
WouterJ
6aaefd84d9 Reverted new image 2013-12-30 22:05:52 +01:00
WouterJ
ec2496f0c1 Fixed asset function 2013-12-30 22:05:52 +01:00
Bernhard Schussek
624a09f1f3 Enlarged the clickable area of the toggle button in the form tree 2013-12-30 22:05:52 +01:00
Bernhard Schussek
0ff263288b Moved toggle icon behind the headlines in the form debugger 2013-12-30 22:05:52 +01:00
Bernhard Schussek
8ba8db2079 Changed toggle color back to blue and made headlines in the form debugger clickable 2013-12-30 22:05:52 +01:00
Bernhard Schussek
b8358e3427 Added "use strict" statements 2013-12-30 22:05:51 +01:00
Bernhard Schussek
093669435b Inverted toggler images and improved button coloring 2013-12-30 22:05:51 +01:00
Bernhard Schussek
64a3442a3d Improved JavaScript of the form debugger 2013-12-30 22:05:51 +01:00
Bernhard Schussek
0908155eb0 Vertically centered the icons in the form tree 2013-12-30 22:05:51 +01:00
WouterJ
9dc2cde26c Fixed CS 2013-12-30 22:05:51 +01:00
WouterJ
6eb1e4945c Added error badge 2013-12-30 22:05:51 +01:00
WouterJ
b02c227fab Made sections collapsable 2013-12-30 22:05:50 +01:00
WouterJ
b223527373 Improved form tree 2013-12-30 22:05:50 +01:00
WouterJ
c19ff6fb45 Expand tree 2013-12-30 22:05:50 +01:00
Luis Cordova
4fba412761 adjusted behavior to always copy override on url files 2013-12-30 11:15:58 -05:00
Fabien Potencier
96c44862c5 minor #9374 Change of scope (djoos)
This PR was submitted for the 2.3 branch but it was merged into the 2.5-dev branch instead (closes #9374).

Discussion
----------

Change of scope

Hi,

when overriding the Symfony RoleHierarchy it would be great to be able to get access to the buildRoleMap-method and map-variable for more advanced usage.

Don't hesitate to ask for further clarification if necessary - thanks in advance for merging the PR!

Kind regards,
David

Commits
-------

621aaf1 Change of scope
2013-12-30 07:38:35 +01:00
David Joos
335bee2fb4 Change of scope
When overriding the Symfony RoleHierarchy it would be great to be able to get access to the buildRoleMap-method and map-variable for more advanced usage.
2013-12-30 07:38:35 +01:00
Fabien Potencier
5079f3478b feature #9892 [Validator] Added Doctrine cache (florianv)
This PR was merged into the 2.5-dev branch.

Discussion
----------

[Validator] Added Doctrine cache

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | https://github.com/symfony/symfony/issues/9887
| License       | MIT
| Doc PR        |

I propose to keep the `CacheInterface` and deprecate only the `ApcCache`.
It will leave the classes depending on a `CacheInterface` unchanged and will allow to adapt new cache providers in the future.

Commits
-------

3c4de45 [Validator] Added Doctrine cache
2013-12-30 07:19:00 +01:00
Fabien Potencier
c92274aea2 minor #9896 [Intl] Skip tests that need full lib-intl when there's no lib-intl (pamil)
This PR was submitted for the 2.3-dev branch but it was merged into the 2.3 branch instead (closes #9896).

Discussion
----------

[Intl] Skip tests that need full lib-intl when there's no lib-intl

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

`NumberFormatter::formatCurrency` executes indirectly `Symfony\Component\Intl\ResourceBundle\Reader::read()`, which has `$bundle = new \ResourceBundle($locale, $path)` - there's Fatal Error if `\ResourceBundle` isn't found. Added availability to run unit tests if `lib-intl` isn't installed.

Commits
-------

6614b66 Skips test that need full lib-intl.
2013-12-30 07:16:13 +01:00
Kamil Kokot
dbb7e78af1 Skips test that need full lib-intl. 2013-12-30 07:16:13 +01:00
florianv
3c4de45ce9 [Validator] Added Doctrine cache 2013-12-30 06:04:40 +01:00
Fabien Potencier
c15175ab00 Merge branch '2.4'
* 2.4:
  fix some cs
  use restore_error_handler instead of set_error_handler($previous)
  fix #9321 Crawler::addHtmlContent add gbk encoding support
  [Console] fixed column width when using the Table helper with some decoration in cells
  [Security] Fixed problem with losing ROLE_PREVIOUS_ADMIN role.
  Fix for cache-key conflict when having a \Traversable as choices
  [Security] removed obsolete comment
2013-12-29 21:34:05 +01:00
Fabien Potencier
37813bd7c3 Merge branch '2.3' into 2.4
* 2.3:
  fix some cs
  use restore_error_handler instead of set_error_handler($previous)
  fix #9321 Crawler::addHtmlContent add gbk encoding support
  [Console] fixed column width when using the Table helper with some decoration in cells
  [Security] Fixed problem with losing ROLE_PREVIOUS_ADMIN role.
  Fix for cache-key conflict when having a \Traversable as choices
  [Security] removed obsolete comment

Conflicts:
	src/Symfony/Component/Console/Helper/TableHelper.php
	src/Symfony/Component/Security/Tests/Http/Firewall/ExceptionListenerTest.php
2013-12-29 21:33:52 +01:00
Fabien Potencier
6d4174227d bug #9889 [Console] fixed column width when using the Table helper with some decoration in cells (fabpot)
This PR was merged into the 2.3 branch.

Discussion
----------

[Console] fixed column width when using the Table helper with some decoration in cells

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8152, #9366
| License       | MIT
| Doc PR        | n/a

This PR fixes the same issue as #9366 but works in all situations (all kind of styles, when the string is shorter than any other one or larger than any other ones, ...).

I'm not very satisfied with the fix and especially the `computeLengthWithoutDecoration` method, but the whole helper should be rethought to make it stateless (out of the scope of this PR).

Commits
-------

5b4d057 [Console] fixed column width when using the Table helper with some decoration in cells
2013-12-29 21:20:53 +01:00
Fabien Potencier
9fbe14829e feature #9590 WebTestCase: Assume relative KERNEL_DIR is relative to phpunit.xml[.dist]? (mpdude)
This PR was merged into the 2.5-dev branch.

Discussion
----------

WebTestCase: Assume relative KERNEL_DIR is relative to phpunit.xml[.dist]?

When using the `KERNEL_DIR` setting in phpunit.xml[.dist] files for the `WebTestCase`, a relative path seems to be interpreted relative to the cwd.

That makes no difference in the probably most common case of having the phpunit config in the project's top level directory and just running `phpunit`. It makes a difference however when running it from a lower level dir and referencing the config with `-c ../../phpunit.xml`.

A conservative change would be to interpret the `KERNEL_DIR` as relative to cwd and only try it as relative to the phpunit.xml[.dist] file if the first path does not exist.

A more consistent approach would be to always have it (in case of relative paths) being relative to the config file. That might break things for folks who intentionally start phpunit from different directories to use different kernels.

The docs seem not to say anything about how it is supposed to used, the example values provided suggest using an absolute path.

Opinions?

Commits
-------

05dc0e1 Consider KERNEL_DIR setting as relative to the PhpUnit XML file if it does not point to a directory (relative to the current cwd)
2013-12-29 20:01:37 +01:00
Fabien Potencier
e0126d9d39 bug #9323 [DomCrawler]fix #9321 Crawler::addHtmlContent add gbk encoding support (bronze1man)
This PR was submitted for the 2.2 branch but it was merged into the 2.3 branch instead (closes #9323).

Discussion
----------

[DomCrawler]fix #9321 Crawler::addHtmlContent add gbk encoding support

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |  #9321
| License       | MIT
| Doc PR        | n/a

This is solution 1 in https://github.com/symfony/symfony/issues/9321#issuecomment-26508649

Commits
-------

30af288 fix some cs
9f20b24 use restore_error_handler instead of set_error_handler($previous)
53cb6ad [DomCrawler]fix #9321 Crawler::addHtmlContent add gbk encoding support
2013-12-29 19:30:30 +01:00
bronze1man
e26e564b64 fix some cs 2013-12-29 19:30:30 +01:00
bronze1man
461412ca12 use restore_error_handler instead of set_error_handler($previous) 2013-12-29 19:30:30 +01:00
bronze1man
acb2df0842 fix #9321 Crawler::addHtmlContent add gbk encoding support 2013-12-29 19:30:30 +01:00
Fabien Potencier
4f3d502d6e [FrameworkBundle] removed some more dependencies on the request service 2013-12-29 19:26:53 +01:00
Fabien Potencier
5b4d057b58 [Console] fixed column width when using the Table helper with some decoration in cells 2013-12-29 18:21:38 +01:00
Fabien Potencier
0285bfde5d bug #8997 [Security] Fixed problem with losing ROLE_PREVIOUS_ADMIN role. (pawaclawczyk)
This PR was squashed before being merged into the 2.3 branch (closes #8997).

Discussion
----------

[Security] Fixed problem with losing ROLE_PREVIOUS_ADMIN role.

<table>
  <tr>
    <td><b>Q</b></td>
    <td><b>A</b></td>
  </tr>
  <tr>
    <td>Bug fix?</td>
    <td>yes</td>
  </tr>
  <tr>
    <td>New feature</td>
    <td>no</td>
  </tr>
  <tr>
    <td>BC breaks?</td>
    <td>no</td>
  </tr>
  <tr>
    <td>Deprecations?</td>
    <td>no</td>
  </tr>
  <tr>
    <td>Tests pass?</td>
    <td>yes</td>
  </tr>
  <tr>
    <td>Fixed tickets</td>
    <td>#3085, #8974</td>
  </tr>
  <tr>
    <td>License</td>
    <td>MIT</td>
  </tr>
  <tr>
    <td>Doc PR</td>
    <td>n/a</td>
  </tr>
</table>

Problem occurs while user is impersonated. Authentication process generates new token and doeas not preserve role ```ROLE_PREVIOUS_ADMIN```. Ex. when parameter ```security.always_authenticate_before_granting``` is enabled.

Commits
-------

a7baa3b [Security] Fixed problem with losing ROLE_PREVIOUS_ADMIN role.
2013-12-29 16:53:43 +01:00