Commit Graph

11881 Commits

Author SHA1 Message Date
Fabien Potencier
1aa68dab07 [HttpFoundation] added a way to inject a custom magic file into FileinfoMimeTypeGuesser (closes #6963) 2013-04-23 09:31:45 +02:00
Fabien Potencier
29b5413134 [HttpFoundation] added some more phpdocs to clarify usage 2013-04-23 09:14:05 +02:00
Fabien Potencier
ee784fb433 clarified how/when to use client or guessed mime-types and extensions on a File instance (closes #5039) 2013-04-23 08:57:53 +02:00
Miha Vrhovnik
5609aae856 Added currency form type and validator 2013-04-23 06:57:28 +02:00
Gábor Fási
cd2f0a68d1 [Validator] Hungarian translation for the ISSN validator 2013-04-22 21:32:58 +02:00
Fabien Potencier
47b53c3af7 merged branch ajgarlag/fix-issn-option (PR #7804)
This PR was merged into the master branch.

Discussion
----------

[Validator] Rename requireHyphens to requireHyphen for Issn constraint

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

While writing the documentation for the new Issn validator submitted yesterday at https://github.com/symfony/symfony/pull/7756, I've realized that the option ```requireHyphens``` should be renamed to ```requireHyphen``` because only one hyphen is allowed in the ISSN value.

Commits
-------

94173ec Rename requireHyphens to requireHyphen for Issn constraint
2013-04-22 20:53:05 +02:00
Fabien Potencier
9f3ce8e3bd merged branch jakzal/dumpfile-tests (PR #7801)
This PR was merged into the master branch.

Discussion
----------

[Filesystem] Added a missing test case for Filesystem::dumpFile()

This PR adds a test case for the ``Filesystem::dumpFile()`` method (introduced in #7753).

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | [![Build Status](https://travis-ci.org/jakzal/symfony.png?branch=dumpfile-tests)](https://travis-ci.org/jakzal/symfony)
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

8fcf4c2 [Filesystem] Added a missing test case for Filesystem::dumpFile().
2013-04-22 20:52:28 +02:00
Jakub Zalas
8fcf4c2d8a [Filesystem] Added a missing test case for Filesystem::dumpFile(). 2013-04-22 19:32:36 +01:00
Antonio J. García Lagar
94173ec58e Rename requireHyphens to requireHyphen for Issn constraint 2013-04-22 20:32:17 +02:00
Fabien Potencier
9cdd1c7b6f merged branch jakzal/checkbox-type-false (PR #7789)
This PR was merged into the master branch.

Discussion
----------

[Form] Allowed binding false to a checkbox

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | yes
| Deprecations? | no
| Tests pass?   | [![Build Status](https://travis-ci.org/jakzal/symfony.png?branch=checkbox-type-false)](https://travis-ci.org/jakzal/symfony)
| Fixed tickets | #7139
| License       | MIT
| Doc PR        | -

Commits
-------

24ef8d2 [Form] Added a SimpleFormTest test case.
e493984 [Form] Allowed binding false to a checkbox.
2013-04-22 20:30:59 +02:00
Josip Kruslin
37443acc5c Updated croatian validator translation
Updated croatian validator translation (collection, IBAN, ISBN, ISSN)
2013-04-22 18:59:18 +02:00
Fabien Potencier
b13af94e01 merged branch bschussek/button-fix (PR #7800)
This PR was merged into the master branch.

Discussion
----------

[Form] Fixed missing label in button

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

Commits
-------

6671b32 [Form] Fixed missing label in button
2013-04-22 16:23:52 +02:00
Bernhard Schussek
6671b32285 [Form] Fixed missing label in button 2013-04-22 16:22:02 +02:00
Fabien Potencier
7ef73b14c6 [HttpKernel] added logging when an inline fragment cannot be rendered and ignore_errors is on 2013-04-22 15:39:53 +02:00
Jakub Zalas
24ef8d2336 [Form] Added a SimpleFormTest test case. 2013-04-22 14:11:14 +01:00
Fabien Potencier
4cbf3a1c97 merged branch bschussek/twig-fix (PR #7797)
This PR was merged into the master branch.

Discussion
----------

[TwigBridge] Added missing form() function

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

Commits
-------

045fed6 [TwigBridge] Added missing form() function
2013-04-22 15:02:33 +02:00
Fabien Potencier
56ee5519d9 [Finder] updated CHANGELOG 2013-04-22 15:01:19 +02:00
Fabien Potencier
b58f9fdbd6 merged branch jfsimon/issue-6981 (PR #7518)
This PR was merged into the master branch.

Discussion
----------

[Finder] adds a way to ignore AccessDeniedException

This PR adds a `Finder::ignoreUnreadableDirs()` method which tells `Finder` to ignore unreadable directories instead of throwing an `AccessDeniedException`.

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

Commits
-------

a63b30b [Finder] added Finder::ignoreUnreadableDirs() method
2013-04-22 15:00:38 +02:00
Bernhard Schussek
045fed6018 [TwigBridge] Added missing form() function 2013-04-22 14:51:35 +02:00
Jakub Zalas
e4939849ab [Form] Allowed binding false to a checkbox. 2013-04-22 13:33:42 +01:00
Jakub Zalas
421bd1286c [Validator] Added Polish translation for the ISSN validator. 2013-04-22 11:52:51 +01:00
Fabien Potencier
eaaaac7432 [HttpFoundation] fixed CS for previous merge 2013-04-22 12:31:13 +02:00
Fabien Potencier
982a30cadb merged branch erikaheidi/enhance_upload_errors (PR #7785)
This PR was merged into the master branch.

Discussion
----------

[HttpFoundation] [File] enhance upload error messages

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

TODO
- [ ] update DOCS ?

It just adds more informative error messages when theres an upload error.

Commits
-------

fde044c enhance upload error messages
2013-04-22 12:29:11 +02:00
Fabien Potencier
3bad6e441b merged branch Aitboudad/patch-2 (PR #7787)
This PR was squashed before being merged into the master branch (closes #7787).

Discussion
----------

[Validator] added Arabic translation for ISSN message

Commits
-------

4ae9b52 [Validator] added Arabic translation for ISSN message
2013-04-22 12:27:25 +02:00
Abdellatif AitBoudad
4ae9b529ce [Validator] added Arabic translation for ISSN message 2013-04-22 12:27:25 +02:00
Fabien Potencier
838fa29406 merged branch Aitboudad/patch-1 (PR #7786)
This PR was merged into the master branch.

Discussion
----------

[Validator] added french translation for ISSN message

Commits
-------

06e7d17 [Validator] added french trans for ISSN message
2013-04-22 12:27:12 +02:00
Fabien Potencier
db3250d7e0 merged branch ikerib/basque-trans (PR #7788)
This PR was merged into the master branch.

Discussion
----------

[Validator] Added Basque translations of IBAN and ISBN

Commits
-------

cd0ade3 Added some basque translations
2013-04-22 12:25:44 +02:00
Fabien Potencier
c69d75881e merged branch ricardclau/add_catalan_validators (PR #7794)
This PR was merged into the master branch.

Discussion
----------

[Validator] Added Catalan translations for IBAN, ISBN and ISSN messages.

Commits
-------

5114233 add new validation messages for catalan
2013-04-22 12:25:07 +02:00
Ricard Clau
5114233684 add new validation messages for catalan 2013-04-22 12:19:47 +02:00
ricoli
ea08a4e997 [Validator] Added Portuguese translations for IBAN and ISBN messages. 2013-04-22 12:16:36 +02:00
ikerib
cd0ade33c6 Added some basque translations 2013-04-22 09:57:39 +02:00
Abdellatif AitBoudad
06e7d17a3e [Validator] added french trans for ISSN message 2013-04-22 07:00:03 +00:00
Fabien Potencier
f10364a07e merged branch fabpot/moved_validator_4 (PR #7784)
This PR was merged into the 2.1 branch.

Discussion
----------

Add This field is missing RU translation

This PR was submitted on the symfony/Validator read-only repository and moved automatically to the main Symfony repository (closes symfony/Validator#4).

<source>This field is missing.</source>
Have no translation. Not exists in EN version too. Just forgot? 
Symfony\Component\Validator\Constraints\Collection()
public $missingFieldsMessage = 'This field is missing.';

Commits
-------

97c4291 Add This field is missing RU translation
2013-04-22 08:34:44 +02:00
Maksim Muruev
97c4291452 Add This field is missing RU translation
<source>This field is missing.</source>
Have no translation. Not exists in EN version too. Just forgotten? 
Symfony\Component\Validator\Constraints\Collection()
public $missingFieldsMessage = 'This field is missing.';
2013-04-22 08:33:45 +02:00
erikaheidi
fde044cc1a enhance upload error messages 2013-04-22 08:32:55 +02:00
77web
95030ec51b [Validator] added Japanese translation for ISSN message 2013-04-22 14:54:06 +09:00
Fabien Potencier
6f35599523 [DomCrawler] finished the previous merge feature addition 2013-04-22 07:03:23 +02:00
Fabien Potencier
714fc4ab94 merged branch fabpot/moved_domcrawler_11 (PR #7750)
This PR was merged into the master branch.

Discussion
----------

Added html method into Crawler class

This PR was submitted on the symfony/DomCrawler read-only repository and moved automatically to the main Symfony repository (closes symfony/DomCrawler#11).

A pull request is waiting for aproval, but is not tested

* This method allow to get html inside desired element
* New method is tested

Commits
-------

a8d2e06 Added html method into Crawler class
2013-04-22 06:55:39 +02:00
Fabien Potencier
150689f07f [DomCrawler] changed Crawler::reduce() to iterate over Crawler instance instead of DomElement instances 2013-04-22 06:54:39 +02:00
Fabien Potencier
a42bcd1766 merged branch fabpot/moved_domcrawler_9 (PR #7751)
This PR was squashed before being merged into the master branch (closes #7751).

Discussion
----------

Method each return an instance of Crawler instead DOMElement

This PR was submitted on the symfony/DomCrawler read-only repository and moved automatically to the main Symfony repository (closes symfony/DomCrawler#9).

Method each return an instance of Crawler instead DOMElement

Commits
-------

14eed63 Method each return an instance of Crawler instead DOMElement
2013-04-22 06:45:25 +02:00
Diego Saint Esteben
14eed63069 Method each return an instance of Crawler instead DOMElement 2013-04-22 06:45:24 +02:00
Fabien Potencier
e6d7b126b1 added missing license blocks 2013-04-22 06:31:56 +02:00
Fabien Potencier
2b473cbb65 Merge branch '2.2'
* 2.2:
  added missing license blocks
  added missing license blocks
2013-04-22 06:30:07 +02:00
Fabien Potencier
a8af3e2c18 added missing license blocks 2013-04-22 06:29:54 +02:00
Fabien Potencier
f6875287b5 Merge branch '2.1' into 2.2
* 2.1:
  added missing license blocks
2013-04-22 06:28:56 +02:00
Fabien Potencier
76b67a1356 added missing license blocks 2013-04-22 06:28:40 +02:00
umpirsky
e3e856e1c3 ISBN, IBAN Serbian translation. 2013-04-21 22:54:57 +02:00
Fabien Potencier
be57a555a6 merged branch andreia/translations-1 (PR #7779)
This PR was merged into the master branch.

Discussion
----------

Add Brazilian Portuguese translations for IBAN, ISBN, and ISSN messages

Commits
-------

7d6d891 Add Brazilian Portuguese translations for IBAN, ISBN, and ISSN messages
2013-04-21 21:58:13 +02:00
Andreia Bohner
7d6d891b6e Add Brazilian Portuguese translations for IBAN, ISBN, and ISSN messages 2013-04-21 16:23:07 -03:00
Kristen Gilden
5131103809 [Validator] added Estonian translations for IBAN, ISBN & ISSN messages 2013-04-21 21:23:53 +03:00
Fabien Potencier
488d5eb1fc Merge branch '2.2'
* 2.2:
  [Validator] added missing estonian translation of messages
  Removed trailing whitespace
  [Validator] added missing estonian translation of messages
  Filesystem::touch() not working with different owners (utime/atime issue)
2013-04-21 19:39:37 +02:00
Fabien Potencier
c8e3f0fabe Merge branch '2.1' into 2.2
* 2.1:
  Removed trailing whitespace
  [Validator] added missing estonian translation of messages
  Filesystem::touch() not working with different owners (utime/atime issue)

Conflicts:
	src/Symfony/Component/Validator/Resources/translations/validators.et.xlf
2013-04-21 19:39:25 +02:00
Fabien Potencier
ab209b2cc9 merged branch lsmith77/redirect_controller (PR #7775)
This PR was merged into the master branch.

Discussion
----------

added changelog note about RedirectController action signature changes

Commits
-------

07d7927 added changelog note about RedirectController action signature changes
2013-04-21 19:38:05 +02:00
Fabien Potencier
64ba269423 merged branch mweimerskirch/patch-15 (PR #7774)
This PR was merged into the master branch.

Discussion
----------

Tweaked German translation

Commits
-------

461c281 Tweaked German translation
2013-04-21 19:38:01 +02:00
jaugustin
a785baaa64 [PropertyAccess] add support for magic call, related to #4683
add a new propertyAccessorBuilder to enable / disable the use of __call by
the PropertyAccessor
2013-04-21 19:34:36 +02:00
Lukas Kahwe Smith
07d79279cd added changelog note about RedirectController action signature changes 2013-04-21 19:22:48 +02:00
Kristen Gilden
633b63bfb3 [Validator] added missing estonian translation of messages 2013-04-21 20:18:20 +03:00
Terje Bråten
3c65ba37dd Added a DoktrineTokenProvider in Security/Bridge/Doctrine/security/RememberMe 2013-04-21 18:59:26 +02:00
Michel Weimerskirch
461c281a56 Tweaked German translation 2013-04-21 19:44:02 +03:00
Michel Weimerskirch
92bfc0b6ff Updated LB translations 2013-04-21 19:18:51 +03:00
Fabien Potencier
9b05da747a merged branch jaugustin/fix-DateTimeToLocalizedStringTransformer-7561 (PR #7772)
This PR was merged into the master branch.

Discussion
----------

fix DateTimeToLocalizedStringTransformer issue #7561

this PR fix #7561 issue:

This fix possible issue with new `\DateTime` throwing `Exception` not handled by the transformer.

Commits
-------

6ccbbe9 fix DateTimeToLocalizedStringTransformer issue #7561, add tests
2013-04-21 18:08:31 +02:00
jaugustin
6ccbbe9314 fix DateTimeToLocalizedStringTransformer issue #7561, add tests 2013-04-21 17:21:23 +02:00
Pascal Borreli
59a9a2181d Added trailing dot 2013-04-21 14:36:44 +00:00
Fabien Potencier
3aa37b59e6 [Config] added missing dep in composer.json 2013-04-21 16:30:01 +02:00
Fabien Potencier
c3756eb800 merged branch webfactory/issue-7230/picks/cache-file-utils (PR #7753)
This PR was squashed before being merged into the master branch (closes #7753).

Discussion
----------

Mitigate dependency upon ConfigCache

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes (refactoring)
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        | todo, issue is symfony/symfony-docs#2531

Some clients use ConfigCache only for its ability to atomically write into a file.

The PR moves that code into the Filesystem component.

It's a pick off #7230.

__To-Do:__
- [ ] Update docs for the Filesystem component

Commits
-------

3158c41 Mitigate dependency upon ConfigCache
2013-04-21 16:28:51 +02:00
Matthias Pigulla
3158c4106a Mitigate dependency upon ConfigCache 2013-04-21 16:28:50 +02:00
Pascal Borreli
20d6fd8987 Removed trailing whitespace 2013-04-21 14:22:56 +00:00
Kristen Gilden
efff50ae69 [Validator] added missing estonian translation of messages 2013-04-21 16:56:15 +03:00
Pascal Borreli
0a12fd619e Fixed typos 2013-04-21 13:23:54 +00:00
Pascal Borreli
7cfa66159e Fixed PHPDocs 2013-04-21 12:26:17 +00:00
Fabien Potencier
a876c8a12e merged branch WouterJ/patch-2 (PR #7762)
This PR was merged into the master branch.

Discussion
----------

[VALIDATOR] Dutch translation of ISSN message

Added dutch translation of the ISSN message (added in #7756 )

Commits
-------

d336979 [VALIDATOR] Dutch translation of ISSN message
2013-04-21 14:23:03 +02:00
Karel Souffriau
7e9fc23eb4 Fixed Dutch translation of IBAN message 2013-04-21 14:12:37 +02:00
Wouter J
d336979b8a [VALIDATOR] Dutch translation of ISSN message 2013-04-21 14:37:54 +03:00
Fabien Potencier
39dfbf682c merged branch pborreli/typos-isbn (PR #7761)
This PR was merged into the master branch.

Discussion
----------

Fixed typos

Sorry for the multiple PRs

Commits
-------

6ef7f10 Fixed typos
2013-04-21 13:21:42 +02:00
Fabien Potencier
a4abfb9550 [Validator] tweaked ISSN validator (refs #7756) 2013-04-21 13:20:34 +02:00
Pascal Borreli
6ef7f10628 Fixed typos 2013-04-21 11:14:35 +00:00
Pascal Borreli
b5c87396b7 Fixed typo 2013-04-21 10:57:29 +00:00
Fabien Potencier
909b810302 [Validator] fixed CS, updated CHANGELOG 2013-04-21 12:48:25 +02:00
Fabien Potencier
a6edc3dfca merged branch ajgarlag/feature/issn-validator (PR #7756)
This PR was squashed before being merged into the master branch (closes #7756).

Discussion
----------

[Validator] Added ISSN Validator

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

This PR complements the ISBN validator added some months ago to allow validation of relevant library systems data.

Commits
-------

77f62ec [Validator] Added ISSN Validator
2013-04-21 12:42:55 +02:00
Antonio J. García Lagar
77f62ec740 [Validator] Added ISSN Validator 2013-04-21 12:42:55 +02:00
Fabien Potencier
ec01e479c4 [Console] made the shel prompt easily customizable (closes #7710) 2013-04-21 12:38:46 +02:00
Fabien Potencier
d5801a2575 merged branch Aitboudad/patch-1 (PR #7758)
This PR was merged into the master branch.

Discussion
----------

[Validator] Added Arabic translations for IBAN & ISBN messages

Commits
-------

fd9eaae [Validator] Added Arabic trans of ISBN validator
2013-04-21 12:18:17 +02:00
Abdellatif AitBoudad
fd9eaaee16 [Validator] Added Arabic trans of ISBN validator 2013-04-21 10:12:31 +00:00
jskvara
565f6120d0 [Validator] Added Czech translations of IBAN and ISBN 2013-04-21 11:50:43 +02:00
Fabien Potencier
d4d79ab707 merged branch dbu/fix-doctrine-register-mappings-pass (PR #7755)
This PR was merged into the master branch.

Discussion
----------

fix register mappings pass to only register mappings with one object manager

| Q             | A
| ------------- | ---
| Bug fix?      |  yes
| New feature?  | no
| BC breaks?    | yes (but feature is totally new)
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #7599
| License       | MIT
| Doc PR        | https://github.com/symfony/symfony-docs/pull/2507

This PR fixes the issues @Stof discovered in #7599 - we now introduce a way to only register the mappings with one of the object managers.

Commits
-------

fc12bd1 fix register mappings pass to only register mappings with one object manager
2013-04-21 11:17:18 +02:00
Fabien Potencier
de956b6e12 merged branch hason/process (PR #6796)
This PR was merged into the master branch.

Discussion
----------

[Process] Added ProcessUtils::escapeArgument() to fix the bug in escapeshellarg() function on Windows

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

Commits
-------

a557b89 [Process] Added ProcessUtils::escapeArgument() to fix the bug in escapeshellarg() function on Windows
2013-04-21 10:43:42 +02:00
David Buchmann
fc12bd1316 fix register mappings pass to only register mappings with one object manager 2013-04-21 10:43:42 +02:00
Fabien Potencier
da5022ccce [HttpKernel] added some comments to explain the rationale behind the previous merge change 2013-04-21 10:38:16 +02:00
Fabien Potencier
5ad5a5ca48 merged branch bamarni/http-kernel-lazy-classmap (PR #7322)
This PR was merged into the master branch.

Discussion
----------

[HttpKernel] made the classmap lazy-loaded

| Q             | A
| ------------- | ---
| Bug fix?      | [no]
| New feature?  | [yes]
| BC breaks?    | [no]
| Deprecations? | [no]
| Tests pass?   | [yes]
| License       | MIT

see https://github.com/symfony/symfony-standard/pull/437#issuecomment-14667140

Instead of managing this from HttpCache, I suggest to handle it at Kernel's level, what do you think?

Commits
-------

2aefe21 [HttpKernel] made the classmap lazy-loaded
2013-04-21 10:36:53 +02:00
Fabien Potencier
46ac2f0e42 [TwigBundle] removed @ when defining an autoescaping service, and fixed XSD to use - instead of _ 2013-04-21 10:18:50 +02:00
Fabien Potencier
898a63c8f0 merged branch maxbeutel/pr/custom-template-escaping (PR #7479)
This PR was merged into the master branch.

Discussion
----------

[TwigBundle] Make twig extension handle custom template escaping guesser

I wanted to add a custom template escaping guesser for twig like in http://twig.sensiolabs.org/doc/recipes.html#using-the-template-name-to-set-the-default-escaping-strategy

This pull request allows you register a service id and a method as a custom guesser:

    twig:
        autoescape: my_service:guess

Documentation is missing for this PR and the unit tests are not that good. I´d work on it if this PR has any chance of getting merged?

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

Commits
-------

c2c1ed0 make twig extension handle custom template escaping guesser
2013-04-21 10:14:24 +02:00
Fabien Potencier
d604af19ef [Serializer] fixed CS 2013-04-21 10:13:22 +02:00
Fabien Potencier
8e8e3772dc merged branch felicitus/master (PR #7494)
This PR was squashed before being merged into the master branch (closes #7494).

Discussion
----------

[master] Better documentation for

Fixes #7492

Commits
-------

b1e14b2 [master] Better documentation for
2013-04-21 10:11:27 +02:00
Felicitus
b1e14b27ba [master] Better documentation for 2013-04-21 10:11:26 +02:00
Fabien Potencier
2ff26b2208 [Console] updated CHANGELOG and added some more unit tests 2013-04-21 09:53:05 +02:00
Fabien Potencier
d9fa16087b merged branch quiqueporta/multiselect (PR #7602)
This PR was squashed before being merged into the master branch (closes #7602).

Discussion
----------

[DialogHelper] Multiselect : added an option to the "select" function that makes the possibility of multiselect options.

When the option list appears, you can select more than one value separated by comma.

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

Commits
-------

c8a5e02 [DialogHelper] Multiselect : added an option to the "select" function that makes the possibility of multiselect options.
2013-04-21 09:51:24 +02:00
Quique Porta
c8a5e021dc [DialogHelper] Multiselect : added an option to the "select" function that makes the possibility of multiselect options. 2013-04-21 09:51:23 +02:00
Fabien Potencier
e03e2cd0fa [HttpKernel] optimized previous merge 2013-04-21 09:48:28 +02:00
Fabien Potencier
2f3b33a630 merged branch guilhermeblanco/client_ip_fix (PR #7559)
This PR was squashed before being merged into the master branch (closes #7559).

Discussion
----------

[HttpFoundation] [HttpKernel] Internal sub-requests should have X-Forwarded-For header providing real client IP

This is a better alternative to fix issue highlighted in #7554 and #7557.

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

When dealing with inline fragment renderer, it emulates an internal request by overriding the REMOTE_ADDR on Request. This is true, since conceptually request came from local server.
The problem that this introduces is that overriding the server value, it turns into an impossible state to retrieve the real client ip, only returning the local server IP (which is hardcoded to 127.0.0.1).

This patch takes the same approach as a Varnish call (it behaves the exact same way, reusing all code built for handling client ip handling on sub-requests), populating the X-Forwarded-For header and also making getClientIp smarter by removing possible local IP addresses from being considered as the client IP address.

Commits
-------

773e109 [HttpFoundation] [HttpKernel] Internal sub-requests should have X-Forwarded-For header providing real client IP
2013-04-21 09:39:54 +02:00
Guilherme Blanco
773e109ebf [HttpFoundation] [HttpKernel] Internal sub-requests should have X-Forwarded-For header providing real client IP 2013-04-21 09:39:17 +02:00
Iltar van der Berg
06e21fff03 Filesystem::touch() not working with different owners (utime/atime issue) 2013-04-21 09:19:24 +02:00
Marc
a8d2e06387 Added html method into Crawler class
* This method allow to get html inside desired element
* New method is tested
2013-04-21 08:33:13 +02:00
Fabien Potencier
085e73f540 merged branch pborreli/patch-8 (PR #7748)
This PR was merged into the master branch.

Discussion
----------

Fixed typo

Commits
-------

173f15c Fixed typo
2013-04-21 08:24:33 +02:00
Fabien Potencier
133cd0320f merged branch 77web/translation-ja-iban-isbn (PR #7747)
This PR was merged into the master branch.

Discussion
----------

[Validator] added Japanese translation for IBAN & ISBN messages

| Q             | A
| ------------- | ---
| Fixed tickets | N/A
| License       | MIT

Commits
-------

3719cd5 [Validator] added Japanese translation for IBAN & ISBN messages
2013-04-21 08:24:02 +02:00
Fabien Potencier
993abe0a53 merged branch jakzal/iban-isbn-pl-translations (PR #7743)
This PR was merged into the master branch.

Discussion
----------

[Validator] Added Polish translations for IBAN and ISBN messages.

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

Commits
-------

811fc30 [Validator] Added Polish translations for IBAN and ISBN messages.
2013-04-21 08:23:28 +02:00
Fabien Potencier
9772300060 merged branch patie/master (PR #7744)
This PR was merged into the master branch.

Discussion
----------

[Validator] Added Slovak translations for IBAN and ISBN messages.

Commits
-------

2890a3f [Validator] Added Slovak translations of IBAN and ISBN
2013-04-21 08:23:21 +02:00
Pascal Borreli
173f15c200 Fixed typo 2013-04-21 04:09:58 +00:00
77web
3719cd5bb7 [Validator] added Japanese translation for IBAN & ISBN messages 2013-04-21 09:16:16 +09:00
Alexander Kotynia
ca00f2117f [Validator] Russian translation of the IBAN & ISBN validator messages 2013-04-21 01:30:12 +03:00
Patrik Patie Gmitter
2890a3f6ee [Validator] Added Slovak translations of IBAN and ISBN 2013-04-20 23:46:59 +02:00
Jakub Zalas
811fc30f6c [Validator] Added Polish translations for IBAN and ISBN messages. 2013-04-20 22:44:32 +01:00
Fabien Potencier
407246a1da merged branch mvrhov/patch-1 (PR #4975)
This PR was merged into the master branch.

Discussion
----------

Classes should be removed only when adaptive is specified

This fixes a regression introduced in refactoring done on July 3rd.

Commits
-------

92fbb0b Classes should be removed only when adaptive is specified
2013-04-20 23:04:32 +02:00
Fran Moreno
6dfbb59b4f [Validator] Added Spanish translations of IBAN and ISBN 2013-04-20 22:59:00 +02:00
Fabien Potencier
5dca35c0db merged branch kleiram/dutch-translations (PR #7741)
This PR was merged into the master branch.

Discussion
----------

[Validator] Dutch translation of IBAN and ISBN messages

Added Dutch translations for the IBAN and ISBN validators

Commits
-------

298d5fd [Validator] Dutch translation of IBAN and ISBN messages
2013-04-20 22:40:41 +02:00
Fabien Potencier
2b6d0cb955 merged branch lsmith77/redirect_controller (PR #7590)
This PR was merged into the master branch.

Discussion
----------

make it possible to ignore route attributes in the RedirectContoller

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

```
_welcome:
    pattern: /{path}
    defaults:
        _controller: FrameworkBundle:Redirect:redirect
        route: licenses_projects
        ignoreAttributes: true
    requirements:
        path: .*
```

or

```
_welcome:
    pattern: /{path}
    defaults:
        _controller: FrameworkBundle:Redirect:redirect
        route: licenses_projects
        ignoreAttributes: [path]
    requirements:
        path: .*
```

Ensures that ``path`` isnt added as a GET parameter in case the ``licenses_projects`` doesnt have a path in the pattern.

Commits
-------

190abc1 add unit tests for $ignoreAttributes
0c7b65f inject the Request via the action signature, rather than fetching it from the DIC
49062aa make it possible to ignore route attributes in the RedirectContoller
2013-04-20 22:39:42 +02:00
Fabien Potencier
51d20fe647 merged branch MidnightLightning/master (PR #7634)
This PR was squashed before being merged into the master branch (closes #7634).

Discussion
----------

[2.3][HttpFoundation] PDO Session handling enhancements

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

`PdoSessionHandler` class assumes that the PDO object is set to throw exceptions, not errors. I added a line in the constructor to set that attribute, so configuration/query errors are able to be seen and caught a lot easier.

Commits
-------

ce8a441 [2.3][HttpFoundation] PDO Session handling enhancements
2013-04-20 22:37:19 +02:00
Brooks Boyd
ce8a441c10 [2.3][HttpFoundation] PDO Session handling enhancements 2013-04-20 22:37:19 +02:00
Ramon Kleiss
298d5fd5bd [Validator] Dutch translation of IBAN and ISBN messages 2013-04-20 22:35:53 +02:00
Lukas Kahwe Smith
190abc1842 add unit tests for $ignoreAttributes 2013-04-20 22:35:33 +02:00
Lukas Kahwe Smith
0c7b65faf6 inject the Request via the action signature, rather than fetching it from the DIC 2013-04-20 22:34:45 +02:00
Lukas Kahwe Smith
49062aacac make it possible to ignore route attributes in the RedirectContoller 2013-04-20 22:32:51 +02:00
Fabien Potencier
898185e870 merged branch fabpot/callable (PR #7739)
This PR was merged into the master branch.

Discussion
----------

[HttpKernel] allowed any callable to be returned by ControllerResolver::createController

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

Commits
-------

8c44768 [HttpKernel] allowed any callable to be returned by ControllerResolver::createController
2013-04-20 22:31:06 +02:00
Fabien Potencier
f918fc90fe Merge branch '2.2'
* 2.2:
  [Translation] fixed a unit test
2013-04-20 22:30:51 +02:00
Fabien Potencier
33d659047c [Translation] fixed a unit test 2013-04-20 22:30:24 +02:00
Fabien Potencier
8c447680b9 [HttpKernel] allowed any callable to be returned by ControllerResolver::createController 2013-04-20 22:13:18 +02:00
Gábor Fási
7d9fcd1cd5 [Validator] Hungarian translation of the IBAN and ISBN validator messages 2013-04-20 22:02:22 +02:00
Fabien Potencier
1552a16420 Merge branch '2.2'
* 2.2:
  [Config] #7644 add tests for passing number looking attributes as strings
  [HttpFoundation][BrowserKit] fixed path when converting a cookie to a string
  [BrowserKit] removed dead code
  [HttpFoundation] fixed empty domain= in Cookie::__toString()
  fixed detection of secure cookies received over https
  [2.2] Pass ESI header to subrequests
  [Translation] removed an uneeded class property
  [Translation] removed unneeded getter/setter
  [Translator] added additional conversion for encodings other than utf-8
  fixed source messages to accept pluralized messages [Validator][translation][japanese] add messages for new validator
  fix a DI circular reference recognition bug
  [HttpFoundation] fixed the creation of sub-requests under some circumstances for IIS

Conflicts:
	src/Symfony/Component/HttpFoundation/Tests/CookieTest.php
2013-04-20 21:06:06 +02:00
Fabien Potencier
e81f7925eb Merge branch '2.1' into 2.2
* 2.1:
  [HttpFoundation][BrowserKit] fixed path when converting a cookie to a string
  [BrowserKit] removed dead code
  [HttpFoundation] fixed empty domain= in Cookie::__toString()
  fixed detection of secure cookies received over https
  [Translation] removed an uneeded class property
  [Translation] removed unneeded getter/setter
  [Translator] added additional conversion for encodings other than utf-8
  fix a DI circular reference recognition bug
  [HttpFoundation] fixed the creation of sub-requests under some circumstances for IIS
2013-04-20 21:05:29 +02:00
Fabien Potencier
64ac4d1679 merged branch cordoval/bugfix/7644 (PR #7655)
This PR was squashed before being merged into the 2.2 branch (closes #7655).

Discussion
----------

[Config] #7644 add tests for passing number looking attributes as strings

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

Commits
-------

d98118a [Config] #7644 add tests for passing number looking attributes as strings
2013-04-20 20:42:11 +02:00
Luis Cordova
d98118ac05 [Config] #7644 add tests for passing number looking attributes as strings 2013-04-20 20:42:10 +02:00
Fabien Potencier
36d057b69e [HttpFoundation][BrowserKit] fixed path when converting a cookie to a string
An empty path has a different meaning than a /; it means that the path
is the one from the current URI.
2013-04-20 20:05:01 +02:00
Fabien Potencier
c884151e16 [BrowserKit] removed dead code 2013-04-20 20:04:45 +02:00
Fabien Potencier
495d0e366e [HttpFoundation] fixed empty domain= in Cookie::__toString() 2013-04-20 19:50:53 +02:00
Andrew Coulton
c2bc707a4d fixed detection of secure cookies received over https
BrowserKit's cookie handling only recognises a secure cookie if the
cookie option is set and the cookie was set over an https request.
The client was not passing the url into the cookiejar update code,
causing Cookie::isSecure() to always return false for every cookie.

Fixes symfony/symfony#7666
2013-04-20 18:48:52 +02:00
Fabien Potencier
6290220f0a merged branch romainneutron/process-builder-prefix (PR #7584)
This PR was merged into the master branch.

Discussion
----------

[Process] Add ProcessBuilder::setPrefix method

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

This introduce a new feature for the `ProcessBuilder` that allows to prefix all generated `Process` commands with a custom value.
This is mostly useful when dealing with binary drivers.

Use case :

```php
use Symfony\Component\Process\ExecutableFinder;
use Symfony\Component\Process\ProcessBuilder;

class PhpDriver
{
    private $pb;

    public function __construct(ProcessBuilder $pb)
    {
        $this->pb = $pb;
    }

    public function getInfos()
    {
        return $this->execute('-i');
    }

    public function getVersion()
    {
        return $this->execute('-v');
    }

    private function execute(array $arguments)
    {
        return $this
            ->pb
            ->setArguments($arguments)
            ->createProcess()
            ->run()
            ->getOutput();
    }
}

$finder = new ExecutableFinder();

$pb = new ProcessBuilder();
$pb->setPrefix($finder->find('php'));

$driver = new PhpDriver($pb);
$driver->getVersion();
$driver->getInfos();
```

Commits
-------

cab53ee Add ProcessBuilder::setPrefix method
2013-04-20 18:25:02 +02:00
Bernhard Schussek
41b0127963 [Form] Deprecated bind() and isBound() in favor of submit() and isSubmitted() 2013-04-20 18:05:58 +02:00
Fabien Potencier
7b32794b79 [HttpFoundation] updated CHANGELOG 2013-04-20 17:52:13 +02:00
Fabien Potencier
e7c1696278 [HttpFoundation] refactored code to avoid code duplication 2013-04-20 17:49:57 +02:00
Fabien Potencier
169506743b [HttpFoundation] added some unit tests for ranges of trusted IP addresses 2013-04-20 17:49:57 +02:00
Dmitrii Chekaliuk
811434f988 Allow setting trusted_proxies using CIDR notation 2013-04-20 17:49:56 +02:00
Dmitrii Chekaliuk
ddc9e3892f Modify Request::getClientIp() to use IpUtils::checkIp()
Adds the ability to use CIDR notation in the trusted proxy list
2013-04-20 17:49:56 +02:00
Fabien Potencier
79cadc437d merged branch fabpot/request (PR #7734)
This PR was merged into the master branch.

Discussion
----------

Refactored tests of Request::getTrustedProxies()

| 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

This PR reorganizes the tests for the request trusted proxies as they were unreadable. In the process, I've also removed obsolete stuff and changed the order returned by `Request::getClientIps()` (not a BC break as this method was added in 2.3 -- see #7612).

Commits
-------

75db8eb [HttpFoundation] changed the order of IP addresses returned by Request::getClientIps()
deccb76 [HttpFoundation] refactored trusted proxies tests to make them easier to understand and change
1af9e5e [Request] removed obsolete proxy setting in tests
168b8cb [HttpFoundation] removed obsolete request property
2013-04-20 17:48:56 +02:00
Fabien Potencier
a00d7dc223 merged branch bschussek/improve-naming (PR #7732)
This PR was merged into the master branch.

Discussion
----------

[Form] Renamed form processors to request handlers

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

Commits
-------

ae7c378 [Form] Renamed form processors to request handlers
2013-04-20 17:48:04 +02:00
Bernhard Schussek
ae7c3781b5 [Form] Renamed form processors to request handlers 2013-04-20 17:36:19 +02:00
Fabien Potencier
75db8eb8a7 [HttpFoundation] changed the order of IP addresses returned by Request::getClientIps() 2013-04-20 17:09:51 +02:00
Fabien Potencier
deccb7651d [HttpFoundation] refactored trusted proxies tests to make them easier to understand and change 2013-04-20 17:02:44 +02:00
Fabien Potencier
1af9e5e788 [Request] removed obsolete proxy setting in tests 2013-04-20 16:44:27 +02:00
Bernhard Schussek
9551932e3b [Intl] Removed obsolete classes 2013-04-20 16:41:53 +02:00
Fabien Potencier
168b8cb23e [HttpFoundation] removed obsolete request property 2013-04-20 16:38:46 +02:00
Fabien Potencier
ce7bcddba1 merged branch mweimerskirch/patch-13 (PR #7253)
This PR was squashed before being merged into the 2.2 branch (closes #7253).

Discussion
----------

[2.2] Pass ESI header to subrequests

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

Commits
-------

af819a7 [2.2] Pass ESI header to subrequests
2013-04-20 15:53:43 +02:00