Commit Graph

14058 Commits

Author SHA1 Message Date
Fabien Potencier f5a6d4df88 merged branch kepten/master (PR #7823)
This PR was merged into the master branch.

Discussion
----------

[Validator] updated Hungarian translation

updated and extended Hungarian translation

Commits
-------

cf36126 [Validator] updated Hungarian translation
2013-04-24 07:10:11 +02:00
Fabien Potencier 9b2527a35e merged branch ikerib/basque-trans (PR #7822)
This PR was merged into the master branch.

Discussion
----------

[Validator] Added Basque translations of currency

Commits
-------

d50f488 Currency translation
2013-04-24 07:09:52 +02:00
Robert Kiss cf36126cea [Validator] updated Hungarian translation
updated and extended Hungarian translation
2013-04-24 00:07:14 +03:00
ikerib d50f4880bc Currency translation 2013-04-23 23:02:03 +02:00
Romain Neutron 1de29b9a7b [Process] Do not throw LogicException in ProcessBuilder::getProcess if no arguments are set but a prefix is 2013-04-23 22:53:10 +02:00
Romain Neutron 209799b18e [Process] Use new ProcessUtils::escapeArgument to escape ProcessBuilder prefix 2013-04-23 22:48:37 +02:00
Fabien Potencier 61c56fc54a merged branch jfsimon/console-descriptor (PR #7454)
This PR was squashed before being merged into the master branch (closes #7454).

Discussion
----------

[Console] application/command as text/xml/whatever decoupling

This PR removes description generation from `Command`, `Application` and `InputDefinition` classes and delegate it to specialized descriptor classes, making it dead simple to add new output formats.

**Maybe this could include other commands, like `router:debug` or `container:debug` (see #5740)?**

- [x] Add a `DescriptorProvider` which uses `DescriptorInterface` objects to describe things.
- [x] Add `txt` descriptors.
- [x] Add `xml` descriptors.
- [x] Add `json` descriptors.
- [x] Add `md` descriptors.
- [x] Remove obsolete methods.
- [x] Repair tests.

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

Commits
-------

51512e6 [Console] application/command as text/xml/whatever decoupling
2013-04-23 18:54:01 +02:00
Jean-François Simon 51512e633b [Console] application/command as text/xml/whatever decoupling 2013-04-23 18:54:00 +02:00
Fabien Potencier bdc073430e merged branch micheleorselli/update_it_validators (PR #7817)
This PR was merged into the master branch.

Discussion
----------

[Validator] Added missing Italian translation

Commits
-------

a2e1e25 updated it translation for validators
2013-04-23 16:30:11 +02:00
Fabien Potencier 61d3be0d6d merged branch bschussek/rename-bind (PR #7736)
This PR was merged into the master branch.

Discussion
----------

[Form] Deprecated bind() and isBound() in favor of submit() and isSubmitted()

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

This change was discussed for a while in #5493. **(*)** It breaks BC *only for people who implemented* `FormInterface` *manually* (not a lot, so I hope). These can fix the problem by simply renaming `bind()` and `isBound()` in their implementation to `submit()` and `isSubmitted()`.

The main rationale is that with the request handlers introduced in #6522, people won't be confronted with the term "binding" anymore. As such, `isBound()` will be a very strange name to new users that have never used `bind()` manually.

See this code sample as example:

```php
$form = $this->createForm(...);
$form->handleRequest($request);

// Imagine you have never heard about bind() or binding. What does this mean?
if ($form->isBound()) {
    // ...
}
```

In reality, `bind()` submits a form. Where-ever I renamed "bind" to "submit" in the comments, "submit" made actually much more sense. So it does in the code sample above:

```php
$form = $this->createForm(...);
$form->handleRequest($request);

// Aha!
if ($form->isSubmitted()) {
    // ...
}
```

Also when using `submit()` directly, the code makes much more sense now:

```php
$text = $this->createForm('text');
$text->submit('New Value');
```

For current users, the current naming will be supported until 3.0.

Commits
-------

41b0127 [Form] Deprecated bind() and isBound() in favor of submit() and isSubmitted()
2013-04-23 16:30:03 +02:00
Michele Orselli a2e1e25f8f updated it translation for validators 2013-04-23 15:34:10 +02:00
Fabien Potencier 81f37ba3a3 merged branch XWB/currency-translation (PR #7814)
This PR was merged into the master branch.

Discussion
----------

[Validator] Added Dutch currency translation

The previous translation was not entirely correct, sorry!

Commits
-------

dc40a29 [Validator] Added Dutch currency translation
aa795ed Revert "[Validator] Added Dutch currency translation"
2013-04-23 15:01:49 +02:00
Fabien Potencier dc26df007f merged branch toin0u/patch-1 (PR #7815)
This PR was merged into the master branch.

Discussion
----------

[Validator] Added Danish translation for the currency validator

Commits
-------

f801f22 [Validator] Added Danish translation for the currency validator
2013-04-23 15:01:04 +02:00
Antoine Corcy f801f22a39 [Validator] Added Danish translation for the currency validator 2013-04-23 14:59:16 +02:00
Fabien Potencier 14ae4ecfd7 merged branch bschussek/improve-name-parser (PR #7812)
This PR was merged into the master branch.

Discussion
----------

[FrameworkBundle] Improved TemplateNameParser performance

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

Performance test in symfony-standard:
```php
<?php

use Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser;

require __DIR__.'/vendor/autoload.php';
require __DIR__.'/app/AppKernel.php';

$kernel = new AppKernel('dev', true);
$kernel->boot();
$parser = new TemplateNameParser($kernel);

$time = microtime(true);

for ($i = 0; $i < 50; ++$i) {
    $parser->parse("AcmeDemoBundle:Foo:bar$i.html.twig");
}

echo "Time:   " . (microtime(true) - $time)*1000 . "ms\n";
echo "Memory: " . memory_get_peak_usage(true)/(1024*1024) . "MB\n";
```

Before:
```
Time:   3.80706787109ms
Memory: 1.5MB
```

After:
```
Time:   3.13401222229ms
Memory: 1.5MB
```

Commits
-------

f092c7f [FrameworkBundle] Improved TemplateNameParser performance
2013-04-23 14:40:40 +02:00
Bernhard Schussek f092c7f704 [FrameworkBundle] Improved TemplateNameParser performance 2013-04-23 14:20:34 +02:00
Karel Souffriau dc40a29b74 [Validator] Added Dutch currency translation 2013-04-23 14:16:54 +02:00
Karel Souffriau aa795edad4 Revert "[Validator] Added Dutch currency translation"
This reverts commit d26d1ba467.
2013-04-23 14:16:17 +02:00
Fabien Potencier d474ebd7e1 merged branch XWB/currency-translation (PR #7813)
This PR was merged into the master branch.

Discussion
----------

[Validator] Added Dutch currency translation

Commits
-------

d26d1ba [Validator] Added Dutch currency translation
2013-04-23 14:04:05 +02:00
Karel Souffriau d26d1ba467 [Validator] Added Dutch currency translation 2013-04-23 13:58:52 +02:00
Fabien Potencier 08d5d7c89b [HttpKernel] fixed failing tests 2013-04-23 11:21:35 +02:00
Henrik Bjørnskov a1e5c6d359 Use REQUEST_TIME_FLOAT if available.
This will give a more correct initialization time when using the
DataCollectors without a KernelInterface implementation such as Silex.
2013-04-23 11:20:20 +02:00
Fabien Potencier 7a63538946 merged branch stloyd/patch-2 (PR #7810)
This PR was merged into the master branch.

Discussion
----------

[Validator] Added Polish translation for the currency validator.

Commits
-------

839c405 [Validator] Added Polish translation for the currency validator.
2013-04-23 10:51:13 +02:00
Joseph Bielawski 839c40554e [Validator] Added Polish translation for the currency validator. 2013-04-23 10:46:34 +02:00
Fabien Potencier 31ad9c830d merged branch fabpot/mimetypes (PR #7809)
This PR was merged into the master branch.

Discussion
----------

[WIP][HttpFoundation] File mime types and extensions

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #5039, #6963, #5258, #7415, #5615
| License       | MIT
| Doc PR        | n/a

This pull request addresses most of the issues regarding mime types and extension on File instances.

I've also created an issue on the docs to add more documentation about how things work (see symfony/symfony-docs#2542).

Commits
-------

acc2b6a [HttpFoundation] updated the list of known mime types (sync from Apache)
f85cdd2 [HttpFoundation] fixed phpdoc
1aa68da [HttpFoundation] added a way to inject a custom magic file into FileinfoMimeTypeGuesser (closes #6963)
29b5413 [HttpFoundation] added some more phpdocs to clarify usage
ee784fb clarified how/when to use client or guessed mime-types and extensions on a File instance (closes #5039)
2013-04-23 10:37:38 +02:00
Fabien Potencier 221893629e merged branch mvrhov/currency (PR #6566)
This PR was merged into the master branch.

Discussion
----------

[2.3] Added currency locale data, form type and validator

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
License of the code: MIT
Documentation PR: symfony/symfony-docs#2105

Commits
-------

5609aae Added currency form type and validator
2013-04-23 10:36:26 +02:00
Fabien Potencier acc2b6ac3f [HttpFoundation] updated the list of known mime types (sync from Apache) 2013-04-23 09:51:43 +02:00
Fabien Potencier f85cdd266b [HttpFoundation] fixed phpdoc 2013-04-23 09:43:42 +02:00
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
Fabien Potencier 902aa4bf22 merged branch maerlyn/master (PR #7805)
This PR was merged into the master branch.

Discussion
----------

[Validator] Hungarian translation for the ISSN validator

Commits
-------

cd2f0a6 [Validator] Hungarian translation for the ISSN validator
2013-04-22 22:10:09 +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
Fabien Potencier 4e6cc864cf merged branch aubx/master (PR #7802)
This PR was merged into the master branch.

Discussion
----------

Updated croatian validator translation from v2.0

Updated croatian validator translation (collection, IBAN, ISBN, ISSN)

Commits
-------

37443ac Updated croatian validator translation
2013-04-22 19:53:35 +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 13149c1c23 merged branch fabpot/inline-fragment-logging (PR #7799)
This PR was merged into the master branch.

Discussion
----------

[HttpKernel] added logging when an inline fragment cannot be rendered and ignore_errors is on

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

This is a rebased and tested version of #7339. This is probably not the most beautiful code, but it gets the job done and does the exact same thing as any other exception handling.

Commits
-------

7ef73b1 [HttpKernel] added logging when an inline fragment cannot be rendered and ignore_errors is on
2013-04-22 16:02:04 +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