Commit Graph

6966 Commits

Author SHA1 Message Date
Fabien Potencier 8b55541aee added an UPGRADE file 2011-10-08 18:29:31 +02:00
Fabien Potencier 6a4b853b27 removed the UPDATE files 2011-10-08 18:26:01 +02:00
Fabien Potencier 35c5e1b8cd merged branch mvrhov/test_fixes (PR #2357)
Commits
-------

395f580 Rebuild resource files with genrb from ICU 4.2. as ICU 4.4 by default builds them in newer format. Also added all files necessary to build resources.dat with pkgdat because syntax for command is so cryptic
438581d Skip test if running as superuser as it will fail

Discussion
----------

Fixes failing tests

This one closes both the #2355 and #2356
2011-10-08 18:10:49 +02:00
Miha Vrhovnik 395f580fd7 Rebuild resource files with genrb from ICU 4.2. as ICU 4.4 by default builds them in newer format.
Also added all files necessary to build resources.dat with pkgdat because syntax for command is so cryptic
2011-10-08 16:41:17 +02:00
Miha Vrhovnik 438581deda Skip test if running as superuser as it will fail 2011-10-08 14:10:49 +02:00
Fabien Potencier 3d64d8e70f fixed typo 2011-10-07 16:14:09 +02:00
Fabien Potencier f6e4c2a428 updated CHANGELOG for 2.1 2011-10-07 14:12:01 +02:00
Fabien Potencier b25a8767ad merged branch schmittjoh/dbalSessionStorage (PR #2182)
Commits
-------

3f8e8c9 fixes a session max lifetime handling
3abb7f3 fixed some conflicts with garbage collection
a1888b2 added a dbal session storage

Discussion
----------

Dbal session storage

Adds a session storage based on Doctrine DBAL.

---------------------------------------------------------------------------

by lsmith77 at 2011/09/14 13:39:28 -0700

guess it would be nice to then provide a service inside the DoctrineBundle that reuses a global DoctrineDBAL connection, guess the connection to use would then need to be configured via the doctrine app config.

---------------------------------------------------------------------------

by schmittjoh at 2011/09/14 13:42:34 -0700

I haven't found a sane way to provide automatic configuration that's why I left this to the user to implement. It's also relatively easy:

```yml
services:
    dbal_session_storage:
        class: Symfony\Bridge\Doctrine\HttpFoundation\DbalSessionStorage
        arguments: [@database_connection]

framework:
    session: { storage_id: dbal_session_storage }

---------------------------------------------------------------------------

by stof at 2011/09/14 13:57:48 -0700

@lsmith77 There is an issue about reusing another DBAL connection: if the transaction is aborted by the ORM, the session could be aborted too as you cannot have 2 independent transactions AFAIK

---------------------------------------------------------------------------

by lsmith77 at 2011/09/14 13:59:57 -0700

not sure how this is relevant. i mean why does the transaction need to be left open? just begin, write, commit ..

---------------------------------------------------------------------------

by stof at 2011/09/14 14:02:39 -0700

and what if the transaction of the ORM is still opened (let's say you use SimpleThingsTransactionalBundle) ?

---------------------------------------------------------------------------

by lsmith77 at 2011/09/14 14:06:12 -0700

well thats a bit of an edge case imho. also i wonder if SimpleThingsTransactionalBundle shouldn't make sure that its transaction is closed before the session is written.

---------------------------------------------------------------------------

by schmittjoh at 2011/09/14 14:06:56 -0700

It closes them.

On Wed, Sep 14, 2011 at 11:06 PM, Lukas Kahwe Smith <
reply@reply.github.com>wrote:

> well thats a bit of an edge case imho. also i wonder if
> SimpleThingsTransactionalBundle shouldn't make sure that its transaction is
> closed before the session is written.
>
> --
> Reply to this email directly or view it on GitHub:
> https://github.com/symfony/symfony/pull/2182#issuecomment-2098100
>

---------------------------------------------------------------------------

by stof at 2011/09/14 14:15:02 -0700

@schmittjoh Does it close them **before** writing the session ?

---------------------------------------------------------------------------

by schmittjoh at 2011/09/14 14:44:15 -0700

I think either commit, or rollback is called, but @beberlei can probably answer that better.

Anyway, it is not really related to this PR because it is up to the user which connection is used.

---------------------------------------------------------------------------

by stof at 2011/09/14 14:58:48 -0700

I know that one of them is called. But if they are called after the session is persisted to the DB, a rollback is an issue as it will rollback the session persistence as well.
The PR is indeed fine. What need to be changed is the doc about how to use it, to advocate using a separate connection instead of the default one (which is used in your example)

---------------------------------------------------------------------------

by schmittjoh at 2011/09/15 02:57:34 -0700

There is no doc yet, but lets see what @fabpot thinks of all of this first.

---------------------------------------------------------------------------

by fabpot at 2011/09/15 04:57:57 -0700

Any benefits over using the PDO session storage?

---------------------------------------------------------------------------

by lsmith77 at 2011/09/15 05:00:50 -0700

cleaner code, potentially better support for niche RDBMS, centralized logging and finally afaik DoctrineDBAL has emulation for nested transactions.

---------------------------------------------------------------------------

by schmittjoh at 2011/09/15 05:11:00 -0700

The benefits (for me) are:

- logging queries
- better interoperability with existing build processes (migrations)
- better database interoperability
- re-using existing connection (I don't have the problem that Stof mentioned above)

---------------------------------------------------------------------------

by beberlei at 2011/09/15 06:18:22 -0700

The nested transactions is the problem here as @stof already said. If you reuse the default connection and use nested transactions that fail then this will make your session not save. That is why the docs should recommend you create a second connection for a dbal based session storage, even if it is using the same database. The PDO session storage would be a second connection besides DBAL aswell.

I like the migrations/schema hook though to create the table automatically through schema commands.

---------------------------------------------------------------------------

by fabpot at 2011/09/15 10:45:31 -0700

ok, looks good to me. Can you add some documentation about its usage (like the possible keys for options)? Is it possible to add some tests too?

---------------------------------------------------------------------------

by jdreesen at 2011/09/22 06:34:11 -0700

why did you close this?

---------------------------------------------------------------------------

by schmittjoh at 2011/09/30 06:26:12 -0700

I can't put more time into this PR, however I'm using it for some time already, and there shouldn't be any major issues as it is basically copy/paste from the PDO session.
2011-10-07 14:11:24 +02:00
Fabien Potencier 89fd9653b4 merged branch Seldaek/trans_charset (PR #2339)
Commits
-------

5473d3b [Translation] Allow use of UTF-8 encoded catalogues into non-UTF-8 applications
deb6dea [Translation] Add failing tests to verify that UTF-8 lang files can't be used with another charset

Discussion
----------

Allow use of UTF-8 catalogues in non-UTF-8 applications

This is #2313 but targetting the master branch.

Bug fix: yes
Feature addition: ?:)
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -

The problem I'm having is that, while porting an existing app, we are using UTF-8 everywhere to have a migration path ready, but the current application and DB is still in ISO-8859-1, which means translations containing accented chars are broken.

Also, we didn't hit the issue yet since we don't use forms much, but I imagine we would have similar issues with core translations for the validator which are all UTF-8 encoded.

Note that I explicitly suppressed this conversion in case your application is setup as UTF-8, to make sure most people are not affected by any slow down this introduces.
2011-10-07 12:00:26 +02:00
Fabien Potencier a4413b828b merged branch helmer/return_void (PR #2337)
Commits
-------

c4226bb Removed redundant "@return void"-s

Discussion
----------

Removed redundant "@return void"-s

.. as mandated by [symfony-docs](https://github.com/symfony/symfony-docs) [PR#754](https://github.com/symfony/symfony-docs/pull/754)
2011-10-07 11:59:30 +02:00
Jordi Boggiano 5473d3b6c9 [Translation] Allow use of UTF-8 encoded catalogues into non-UTF-8 applications 2011-10-07 11:21:05 +02:00
Jordi Boggiano deb6dea76d [Translation] Add failing tests to verify that UTF-8 lang files can't be used with another charset 2011-10-07 11:20:16 +02:00
Helmer Aaviksoo c4226bb6dc Removed redundant "@return void"-s 2011-10-07 11:15:35 +03:00
Fabien Potencier 0e852fe232 Merge branch '2.0'
* 2.0:
  [DoctrineBundle] fixed a unit test (detected thanks to PHP 3.6.0)
  [Form] Fixed lacking attributes in DateTimeType
2011-10-06 21:40:44 +02:00
Fabien Potencier 15f19e50fc [DoctrineBundle] fixed a unit test (detected thanks to PHP 3.6.0) 2011-10-06 21:40:38 +02:00
Fabien Potencier 3f567b8208 [FrameworkBundle] moved a parameter in the same file as the one where the service is defined for better consistency 2011-10-05 19:17:58 +02:00
Fabien Potencier 5fe18cad90 merged branch fivestar/fix-form-datetime-2_0 (PR #2326)
Commits
-------

828b18f [Form] Fixed lacking attributes in DateTimeType

Discussion
----------

[Form] Fixed lacking attributes in DateTimeType

Added invalid_message and invalid_message_parameters. (Moved from #2311)
2011-10-05 11:21:28 +02:00
Katsuhiro OGAWA 828b18f467 [Form] Fixed lacking attributes in DateTimeType 2011-10-05 17:57:43 +09:00
Fabien Potencier 69922c41a9 merged branch SongoQ/polish_translations (PR #2319)
Commits
-------

4909169 Typo, should be "znaków"

Discussion
----------

[FrameworkBundle] Polish validator translations - Typo, should be "znaków"
2011-10-04 16:20:42 +02:00
Fabien Potencier 79bea5677a merged branch yethee/ru_translations (PR #2318)
Commits
-------

9219cf9 [FrameworkBundle] Sync the Russian translations with the SizeLength constraint

Discussion
----------

[FrameworkBundle] Sync the Russian translations with the SizeLength const
2011-10-04 16:20:32 +02:00
Marcin Chylek 4909169ca4 Typo, should be "znaków" 2011-10-04 15:05:36 +02:00
Deni 9219cf9f7d [FrameworkBundle] Sync the Russian translations with the SizeLength constraint 2011-10-04 16:49:04 +04:00
Fabien Potencier 92420ad6c9 merged 2.0 2011-10-04 13:49:11 +02:00
Fabien Potencier 1f2e72d84a updated VERSION for 2.0.4 2011-10-04 13:47:14 +02:00
Fabien Potencier 408c913991 update CONTRIBUTORS for 2.0.4 2011-10-04 13:46:51 +02:00
Fabien Potencier b6ef87f68e updated CHANGELOG for 2.0.4 2011-10-04 13:46:16 +02:00
Fabien Potencier f172547d84 updated vendors for 2.0.4 2011-10-04 13:43:49 +02:00
Fabien Potencier 1fa3d8e701 merged branch SongoQ/polish_translations (PR #2315)
Commits
-------

31840b9 Updated Polish validator translations (trans-unit id="47" and id="48")

Discussion
----------

Updated Polish validator translations (trans-unit id="47" and id="48")
2011-10-04 09:36:45 +02:00
Fabien Potencier d81131ea65 merged branch alifity/id-trans-unit-47-48 (PR #2316)
Commits
-------

8404b35 Updated indonesian translations for trans-unit 47 and 48

Discussion
----------

Updated indonesian translations for trans-unit 47 and 48
2011-10-04 09:36:35 +02:00
Fabien Potencier 55e7e1a198 [Translation] changed some unit tests for PHPUnit 3.6.0 compatibility 2011-10-04 09:36:09 +02:00
Fabien Potencier fbe9aa526e merged 2.0 2011-10-04 09:32:13 +02:00
Fabien Potencier 92d19063a8 [Translation] changed some unit tests for PHPUnit 3.6.0 compatibility 2011-10-04 08:43:04 +02:00
Alif Rachmawadi 8404b354ba Updated indonesian translations for trans-unit 47 and 48 2011-10-04 10:26:20 +07:00
Marcin Chylek 31840b97c6 Updated Polish validator translations (trans-unit id="47" and id="48") 2011-10-03 23:13:07 +02:00
Fabien Potencier dffda2291c merged branch excelwebzone/hebrew_translations (PR #2314)
Commits
-------

eac2a77  Oops.. translated the variable by mistake
51b3b59  Updated Hebrew validator translations (trans-unit id="48")

Discussion
----------

Updated Hebrew validator translations (trans-unit id="48")
2011-10-03 18:04:12 +02:00
Fabien Potencier cf4a91e923 [ClassLoader] fixed usage of trait_exists() 2011-10-03 18:02:59 +02:00
excelwebzone eac2a7781d Oops.. translated the variable by mistake 2011-10-03 07:50:24 -07:00
excelwebzone 51b3b59b54 Updated Hebrew validator translations (trans-unit id="48") 2011-10-03 07:48:23 -07:00
Fabien Potencier 6b16757199 [Security] changed a RuntimeException to LogicException for consistencies between the different Token classes (closes #2310) 2011-10-03 09:03:36 +02:00
Fabien Potencier 8d6add638b [DoctrineBridge] fixed directory reference when the directory cannot be created 2011-10-03 08:58:15 +02:00
Fabien Potencier ee375ae412 merged branch dpb587/patch-appkern (PR #2312)
Commits
-------

5419638 [HttpKernel] Show the actual directory needing to be created.

Discussion
----------

[HttpKernel] Show the actual directory needing to be created.

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -

before: Unable to create the logs directory (/home/symfony/root/app)
after: Unable to create the logs directory (/home/symfony/root/app/logs)
2011-10-03 08:57:14 +02:00
Danny Berger 54196382b7 [HttpKernel] Show the actual directory needing to be created. 2011-10-03 02:08:17 -04:00
Fabien Potencier 30ddf24df3 merged branch aboks/translations_nl (PR #2307)
Commits
-------

0299d38 [FrameworkBundle] Updated Dutch validator translations

Discussion
----------

[FrameworkBundle] Updated Dutch validator translations

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
2011-10-03 07:02:33 +02:00
Arnout Boks 0299d38570 [FrameworkBundle] Updated Dutch validator translations 2011-10-01 14:26:33 +02:00
Fabien Potencier c78921f0d3 merged branch jalliot/missing-guessers (PR #2306)
Commits
-------

ee0fe7a Added guessers for Size and SizeLength constraints

Discussion
----------

Added guessers for Size and SizeLength constraints

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -

---------------------------------------------------------------------------

by jalliot at 2011/09/30 13:40:37 -0700

BTW, I've noticed that some constraints currently don't have guessers in 2.0:

* ``False`` (which could be guessed as a checkbox)
* ``True`` (which could be guessed as a required checkbox)
* ``Choice`` (which could be guessed as a choice type with medium confidence and with the choice list being guessed as the list provided for the constraint)

Are there any reasons why this is not implemented in 2.0 or should I try to make a PR for it?

There is also the ``Collection`` case but I guess it would be too difficult for this one...
2011-09-30 23:05:31 +02:00
Fabien Potencier b639d74c5c merged branch jalliot/trans-fr (PR #2305)
Commits
-------

f9b2be9 Added french translation for SizeLength and UserPassword constraints

Discussion
----------

Added french translation for SizeLength and UserPassword constraints

---------------------------------------------------------------------------

by fabpot at 2011/09/30 13:45:46 -0700

47 is already taken for "This value should be the user current password". Should be 48.

---------------------------------------------------------------------------

by jalliot at 2011/09/30 13:59:01 -0700

@fabpot Fixed and added translation for 47 as well.
2011-09-30 23:02:43 +02:00
Jordan Alliot f9b2be9c9c Added french translation for SizeLength and UserPassword constraints 2011-09-30 22:56:56 +02:00
Jordan Alliot ee0fe7a2b5 Added guessers for Size and SizeLength constraints 2011-09-30 22:31:52 +02:00
Fabien Potencier 6295e55329 [DoctrineBundle] made the previous fix only available in the development environment 2011-09-30 18:10:34 +02:00
Fabien Potencier 87416b4756 [DoctrineBundle] tweaked previous merge 2011-09-30 18:08:38 +02:00