Commit Graph

20114 Commits

Author SHA1 Message Date
Oskar Stark
d44ff2a135 fixxed order of usage 2015-02-05 07:29:49 +01:00
Fabien Potencier
118602a961 minor #13553 [2.7] [Form] Replaced calls to array_search() by in_array() (phansys)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #13553).

Discussion
----------

[2.7] [Form] Replaced calls to array_search() by in_array()

[2.7] [Form] Replaced calls to ```array_search()``` by ```in_array()``` where is no need to get the index.

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

It's a semantic improvement mostly, for readability (no performance impact).

Commits
-------

c2aeeeb [2.7] [Form] Replaced calls to array_search() by in_array() where is no need to get the index
2015-02-05 07:23:01 +01:00
Javier Spagnoletti
c2aeeeb042 [2.7] [Form] Replaced calls to array_search() by in_array() where is no need to get the index
| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT
| Doc PR        | none
2015-02-05 07:23:00 +01:00
Fabien Potencier
82c4edaeb6 bug #13577 [HttpKernel] Added use of instantiateController method provided in (#12022) (stavichenko)
This PR was merged into the 2.6 branch.

Discussion
----------

[HttpKernel] Added use of instantiateController method provided in (#12022)

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

Commits
-------

aa6538a [HttpKernel] Added use of provided by #12022 method to instantiate controller class in bundle's controller resolver
2015-02-05 07:19:58 +01:00
Fabien Potencier
2e7434102a bug #13567 [Routing] make host matching case-insensitive (Tobion)
This PR was merged into the 2.3 branch.

Discussion
----------

[Routing] make host matching case-insensitive

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

Ignore case in host which means:
- When generating URLs we leave the case in the host as specified.
- When matching we always return lower-cased versions of parameters (because of https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Routing/RequestContext.php#L190 ) in the host. This is also what browers do. They lowercase the host before sending the request, i.e. WWW.eXample.org is sent as www.example.org. But when using curl for example it sends the host as-is. So the HttpFoundation Request class can actually have a non-lowercased host because it doesn't have this normalization.

Commits
-------

952388c [Routing] make host matching case-insensitive according to RFC 3986
2015-02-05 07:17:31 +01:00
Fabien Potencier
c9d76d6efa minor #13594 added deprecation notice for HttpCache::createEsi() (fabpot)
This PR was merged into the 2.7 branch.

Discussion
----------

added deprecation notice for HttpCache::createEsi()

| 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
-------

f109f95 added deprecation notice for HttpCache::createEsi()
2015-02-05 07:15:27 +01:00
Fabien Potencier
23253c42a2 removed the last deprecation notice 2015-02-05 06:20:19 +01:00
Fabien Potencier
88dd97e5fa minor #13597 [Serializer] Silent deprecation notice (dunglas)
This PR was merged into the 2.7 branch.

Discussion
----------

[Serializer] Silent deprecation notice

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

Silent deprecated notices in tests.

Commits
-------

8135843 [Serializer] Silent deprecation notice
2015-02-05 06:13:17 +01:00
Kévin Dunglas
8135843b70 [Serializer] Silent deprecation notice 2015-02-04 21:45:48 +01:00
Fabien Potencier
9c32972787 removed deprecation notice 2015-02-04 18:57:59 +01:00
Fabien Potencier
e747947f47 minor #13593 added missing deprecation notice when using the form_enctype function (fabpot)
This PR was merged into the 2.7 branch.

Discussion
----------

added missing deprecation notice when using the form_enctype function

| 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
-------

37a2c93 added missing deprecation notice when using the form_enctype function
2015-02-04 18:16:32 +01:00
Fabien Potencier
772d05303a feature #13294 [PropertyAccess] Show property path in all exception messages (mpajunen)
This PR was squashed before being merged into the 2.7 branch (closes #13294).

Discussion
----------

[PropertyAccess] Show property path in all exception messages

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

Add the property path to the exception message when trying to access a property of a scalar variable or null. For example:

```php
$accessor->getValue((object) ['foo' => null], 'foo.bar'); // Throws UnexpectedTypeException
$old = 'Expected argument of type "object or array", "NULL" given'; // Old message
$new = 'PropertyAccessor requires a graph of objects or arrays to operate on, but it found type "NULL" while trying to traverse path "foo.bar" at property "bar".'; // New message
```

Checking the exception messages was added to the existing tests.

~~To make it possible to customize the exception messages, constructor was removed from `UnexpectedTypeException`. Instead the exception messages are built where the exception is thrown. (None of the other exception classes of the component had custom constructors.)~~

~~There are no BC breaks -- unless removing the constructor of an exception class is considered one.~~

The original PR included a potential BC break but the structure was changed somewhat.

The current version deprecates the old constructor for `UnexpectedTypeException`, but a BC layer is included.

Commits
-------

b286863 [PropertyAccess] Show property path in all exception messages
2015-02-04 17:34:24 +01:00
Mikael Pajunen
b286863bec [PropertyAccess] Show property path in all exception messages 2015-02-04 17:34:04 +01:00
Fabien Potencier
f109f95170 added deprecation notice for HttpCache::createEsi() 2015-02-04 16:19:16 +01:00
Fabien Potencier
37a2c93023 added missing deprecation notice when using the form_enctype function 2015-02-04 16:14:55 +01:00
Fabien Potencier
051402e888 minor #13446 [Process] Make test AbstractProcessTest::testStartAfterATimeout useful again (ymc-dabe)
This PR was squashed before being merged into the 2.3 branch (closes #13446).

Discussion
----------

[Process] Make test AbstractProcessTest::testStartAfterATimeout useful again

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

The test AbstractProcessTest::testStartAfterATimeout() is pretty useless, due to two reasons:

1. Any exception is caught
This means even the exception thrown with
<code>$this->fail('A RuntimeException should have been raised.');</code>
is caught, making the test pretty useless.

2. Invalid PHP code gets executed
The command that is executed in the tests actually is:
<code># php -r "$n = 1000; while ($n--) {echo ''; usleep(1000); }"</code>
.
This does not wait ~1s, but produces the following error:
<code>PHP Parse error:  syntax error, unexpected '=' in Command line code on line 1</code>

Commits
-------

1be266f [Process] Make test AbstractProcessTest::testStartAfterATimeout useful again
2015-02-04 15:30:31 +01:00
Daniel Beyer
1be266fea0 [Process] Make test AbstractProcessTest::testStartAfterATimeout useful again 2015-02-04 15:30:30 +01:00
Fabien Potencier
6f128039a8 removed non-sense example 2015-02-04 15:27:24 +01:00
Fabien Potencier
db5dee66ee feature #13548 [TwigBridge] Added support for passing more files to twig:lint command (sustmi)
This PR was merged into the 2.7 branch.

Discussion
----------

[TwigBridge] Added support for passing more files to twig:lint command

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

Commits
-------

6e197a0 [TwigBridge] Added support for passing more files to twig:lint command
2015-02-04 15:25:22 +01:00
Fabien Potencier
bbabfc7078 minor #13574 Fixes a very small typo in the SecurityContext. (adri)
This PR was submitted for the 2.7 branch but it was merged into the 2.6 branch instead (closes #13574).

Discussion
----------

Fixes a very small typo in the SecurityContext.

| Q             | A
| ------------- | ---
| Fixes small typo |
| License       | MIT

Commits
-------

7dbf615 Fixes small typo.
2015-02-04 15:20:08 +01:00
Adrian Philipp
7dbf61515b Fixes small typo. 2015-02-04 15:20:07 +01:00
Fabien Potencier
c05395cb6c minor #13572 [Validator] Add a Russian translation for invalid charset message (vadim2404)
This PR was merged into the 2.3 branch.

Discussion
----------

[Validator] Add a Russian translation for invalid charset message

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

Commits
-------

503f061 [Validator] Add a Russian translation for invalid charset message
2015-02-04 15:17:38 +01:00
Fabien Potencier
724209cc8f minor #13576 [Serializer] minor: update changelog (dunglas)
This PR was merged into the 2.6 branch.

Discussion
----------

[Serializer] minor: update changelog

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

Commits
-------

021a253 [Serializer] update changelog
2015-02-04 15:16:11 +01:00
Fabien Potencier
af9f31336f minor #13578 Drop useless execution bit (DavidPrevot)
This PR was merged into the 2.6 branch.

Discussion
----------

Drop useless execution bit

Commits
-------

6141f3a Drop useless execution bit
2015-02-04 15:12:59 +01:00
Fabien Potencier
8a9a3ef7a9 minor #13579 [Validator] fix DOS-style line endings (nicolas-grekas)
This PR was merged into the 2.3 branch.

Discussion
----------

[Validator] fix DOS-style line endings

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

Commits
-------

603fec5 [Validator] fix DOS-style line endings
2015-02-04 15:10:59 +01:00
Fabien Potencier
54e07c95dc minor #13580 [Serializer] Use autoloader for annotations in tests (dunglas)
This PR was merged into the 2.7 branch.

Discussion
----------

[Serializer] Use autoloader for annotations in tests

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

Commits
-------

75e2ebf [Serializer] Use autoloader for annotations in tests
2015-02-04 13:46:41 +01:00
Fabien Potencier
d5de9d301e minor #13584 [Validator] Remove unnecessary include in tests (dunglas)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #13584).

Discussion
----------

[Validator] Remove unnecessary include in tests

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

Commits
-------

a4a581c [Validator] Remove unnecessary include in tests
2015-02-04 13:44:36 +01:00
Kévin Dunglas
a4a581c20d [Validator] Remove unnecessary include in tests 2015-02-04 13:44:35 +01:00
Fabien Potencier
1beb7603ad minor #13581 [Serializer] Use Serializer's LogicException when applicable (dunglas)
This PR was merged into the 2.7 branch.

Discussion
----------

[Serializer] Use Serializer's LogicException when applicable

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

Commits
-------

8ddc888 [Serializer] Use Serializer's LogicException when applicable
2015-02-04 13:39:03 +01:00
Fabien Potencier
a6f1e8ca07 minor #13583 [HttpFoundation] minor: clarify Request::getUrlencodedPrefix() regex (dunglas)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #13583).

Discussion
----------

[HttpFoundation] minor: clarify Request::getUrlencodedPrefix() regex

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

The current notation used is confusing and displays an error in PHPStorm (probably a false positive). This PR clarify the notation.

Commits
-------

1aba7b4 [HttpFoundation] minor: clarify Request::getUrlencodedPrefix() regex
2015-02-04 08:33:11 +01:00
Kévin Dunglas
1aba7b4f3d [HttpFoundation] minor: clarify Request::getUrlencodedPrefix() regex 2015-02-04 08:33:10 +01:00
Fabien Potencier
87c0659b14 fixed typo 2015-02-04 08:25:10 +01:00
Kévin Dunglas
8ddc888f00 [Serializer] Use Serializer's LogicException when applicable 2015-02-03 23:38:39 +01:00
Kévin Dunglas
75e2ebfa30 [Serializer] Use autoloader for annotations in tests 2015-02-03 23:16:32 +01:00
Nicolas Grekas
603fec52f9 [Validator] fix DOS-style line endings 2015-02-03 20:11:13 +01:00
David Prévot
6141f3a625 Drop useless execution bit 2015-02-03 14:46:06 -04:00
Fabien Potencier
e58a68ca73 bumped Symfony version to 2.6.5 2015-02-03 11:03:51 +01:00
Kévin Dunglas
021a253d1d [Serializer] update changelog 2015-02-03 08:04:31 +01:00
Fabien Potencier
fcd6d6085f feature #13120 [Serializer] Name converter support (dunglas)
This PR was merged into the 2.7 branch.

Discussion
----------

[Serializer] Name converter support

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

This PR adds support for custom property naming strategies to the serializer and provides a built-in NameConverter using this new system: (CamelCase to underscore).
It handles normalization and denormalization (convert `fooBar` to `foo_bar` when serializing, then from `foo_bar` to `fooBar` when deserializing). It also has a flag to convert only some attributes.

The `setCamelizedAttributes()` is deprecated in favor of this new method (more flexible, allows to rename all attributes of a class and support deserialization) and now uses it internally.

Commits
-------

86b84a5 [Serializer] Update changelog
e14854f [Serializer] Name converter support
2015-02-03 07:47:10 +01:00
Kévin Dunglas
86b84a573b [Serializer] Update changelog 2015-02-02 23:11:58 +01:00
Fabien Potencier
23b647f1e4 updated VERSION for 2.6.4 2015-02-02 19:02:30 +01:00
Fabien Potencier
628a6a16ae updated CHANGELOG for 2.6.4 2015-02-02 19:02:08 +01:00
Miroslav Sustek
6e197a03dc [TwigBridge] Added support for passing more files to twig:lint command 2015-02-02 17:43:28 +01:00
Fabien Potencier
5af363dc5e bug #13489 [VarDumper] CSS fix (Arrilot)
This PR was merged into the 2.6 branch.

Discussion
----------

[VarDumper] CSS fix

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

Small css issue:
When you use `dump()` after some html has been already echoed (this can be common in non-Symfony app) and you have elements with e.g. `position: absolute` you can end up watching logos and menus instead of vardumper's output:
![css-issue](https://cloud.githubusercontent.com/assets/2826480/5841607/438bf874-a1af-11e4-9905-542a59d358f8.png)

`position: relative` and `z-index` help a lot and i don't see any disadvantages in having these styles by default

Commits
-------

538195c [Var-Dumper] css-fix
2015-02-02 17:32:08 +01:00
Fabien Potencier
88899cb7e9 bug #13441 [VarDumper] fix handling of non-UTF8 strings (nicolas-grekas)
This PR was merged into the 2.6 branch.

Discussion
----------

[VarDumper] fix handling of non-UTF8 strings

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

Commits
-------

4205559 [VarDumper] fix handling of non-UTF8 strings
2015-02-02 15:11:00 +01:00
Fabien Potencier
45e42a8d21 bumped Symfony version to 2.5.11 2015-02-02 15:03:24 +01:00
sergey
aa6538a8a9 [HttpKernel] Added use of provided by #12022 method to instantiate controller class in bundle's controller resolver 2015-02-02 15:24:27 +02:00
Fabien Potencier
6ffe6437a9 updated VERSION for 2.5.10 2015-02-02 10:26:53 +01:00
Fabien Potencier
7e79c228ed updated CHANGELOG for 2.5.10 2015-02-02 10:26:02 +01:00
Vadim Kharitonov
503f061f75 [Validator] Add a Russian translation for invalid charset message 2015-02-02 12:24:57 +03:00