Commit Graph

14058 Commits

Author SHA1 Message Date
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
Fabien Potencier 775d951a94 merged branch Olden/russian_translations (PR #7745)
This PR was merged into the master branch.

Discussion
----------

[Validator] Russian translation of the IBAN & ISBN validator messages

Added the Russian translation for new validators.

Commits
-------

ca00f21 [Validator] Russian translation of the IBAN & ISBN validator messages
2013-04-21 08:23:13 +02:00
Garanzha Dmitriy bc62d5b56f typo fix 2013-04-21 08:44:01 +03: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
Fabien Potencier 3841d1c6d7 merged branch franmomu/added_spanish_translations_to_validator (PR #7742)
This PR was merged into the master branch.

Discussion
----------

[Validator] Added Spanish translations for IBAN and ISBN validators

Added Spanish translations for IBAN and ISBN validators

Commits
-------

6dfbb59 [Validator] Added Spanish translations of IBAN and ISBN
2013-04-20 23:03:03 +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 0261e7a680 merged branch maerlyn/hungarian-translations (PR #7740)
This PR was merged into the master branch.

Discussion
----------

[Validator] Hungarian translation of the IBAN and ISBN validator message...

I've added the Hungarian translations for the two newly merged validators.

Commits
-------

7d9fcd1 [Validator] Hungarian translation of the IBAN and ISBN validator messages
2013-04-20 22:24:46 +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 499c9e6fdc merged branch fabpot/cookie (PR #7738)
This PR was merged into the 2.1 branch.

Discussion
----------

[BrowserKit] fixed detection of secure cookies received over https

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

As reported in symfony/symfony#7666, 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.

I have corrected this behaviour and added an additional unit test to prove the bug and fix.

Commits
-------

36d057b [HttpFoundation][BrowserKit] fixed path when converting a cookie to a string
c884151 [BrowserKit] removed dead code
495d0e3 [HttpFoundation] fixed empty domain= in Cookie::__toString()
c2bc707 fixed detection of secure cookies received over https
2013-04-20 20:17:49 +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 5c53e6ba64 merged branch fabpot/trusted-proxies (PR #7735)
This PR was merged into the master branch.

Discussion
----------

[HttpFoundation][FrameworkBundle] Add CIDR notation support in trusted proxy list

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

Should be rebased once #7734 is merged.

Commits
-------

7b32794 [HttpFoundation] updated CHANGELOG
e7c1696 [HttpFoundation] refactored code to avoid code duplication
1695067 [HttpFoundation] added some unit tests for ranges of trusted IP addresses
811434f Allow setting trusted_proxies using CIDR notation
ddc9e38 Modify Request::getClientIp() to use IpUtils::checkIp()
2013-04-20 17:53:03 +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 92f9706311 merged branch bschussek/cleanup-intl (PR #7733)
This PR was merged into the master branch.

Discussion
----------

[Intl] Removed obsolete classes

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

Commits
-------

9551932 [Intl] Removed obsolete classes
2013-04-20 17:18:13 +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