Commit Graph

6966 Commits

Author SHA1 Message Date
Jordi Boggiano
88ebe0cfc4 Adjust the way of checking for windows 2011-09-17 12:57:47 +02:00
Neil Katin
78c630ca2d Added access to Doctrine's ValidateSchema command from the console.
See ticket 2200.
2011-09-16 16:49:37 -07:00
Jordan Alliot
9fe87becd8 More explicit default value for assets_version_format 2011-09-16 18:14:28 +01:00
Jordan Alliot
5146a1f0d0 [EventDispatcher] Added possibility for subscribers to subscribe several times for same event
closes #2146
2011-09-16 18:13:00 +01:00
Fabien Potencier
bc8ed44945 updated CHANGELOG for 2.1 2011-09-16 18:49:11 +02:00
Fabien Potencier
42407d688a merged branch alexandresalome/framework-use-file-storage (PR #2195)
Commits
-------

046a125 [FrameworkBundle] Set the file storage as default storage for Symfony2

Discussion
----------

[FrameworkBundle] Set the file storage as default storage for Symfony2

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

by Seldaek at 2011/09/16 07:41:48 -0700

What's the reasoning behind this? Is SQLite causing issues? Isn't it faster than file storage?

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

by alexandresalome at 2011/09/16 07:50:50 -0700

3 reasons :

* The file storage is faster than the SQLite storage (see https://github.com/symfony/symfony/pull/1772)
* It's the only reason why Symfony2 is dependent of SQLite
* SQLite profiler has problems with concurrency (especially when concurrent access occurs).

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

by Seldaek at 2011/09/16 07:51:50 -0700

Ok sorry I missed the other PR. Sounds great :)
2011-09-16 18:46:54 +02:00
Fabien Potencier
ea7f0f9c46 merged branch jalliot/fix-mirror-arg (PR #2050)
Commits
-------

95dc7e1 Fixed fourth argument of Filesystem->mirror()

Discussion
----------

Fixed fourth argument of Filesystem->mirror()

See #2027 and #2033 for discussion.

@fabpot said that we don't want to use symlink at all on Windows so if this is confirmed, we should also change ``Filesystem->symlink()`` implementation.

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

by alexandresalome at 2011/09/16 08:29:40 -0700

Tested on Windows, OK for me
2011-09-16 18:32:22 +02:00
Johannes M. Schmitt
4061114562 [FrameworkBundle] fixes unintuitive merging behavior 2011-09-16 17:09:10 +02:00
alexandresalome
046a125ef7 [FrameworkBundle] Set the file storage as default storage for Symfony2 2011-09-16 15:45:17 +02:00
Fabien Potencier
e0502b1d69 fixed previous merge, done the same change to other occurences 2011-09-16 14:38:31 +02:00
Fabien Potencier
607337b022 merged branch schmittjoh/mbFix (PR #2194)
Commits
-------

8e2cbe6 fixes usage of mb_*

Discussion
----------

Fixes usage of mb_strlen

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

by Seldaek at 2011/09/16 05:33:45 -0700

This will fail if the mbstring ext isn't enabled, you should still test for the mb_ function first.
2011-09-16 14:35:35 +02:00
Johannes M. Schmitt
8e2cbe603b fixes usage of mb_* 2011-09-16 14:27:56 +02:00
Denis Klementjev
fd4d241b17 Profiler session import fixed. 2011-09-16 13:51:26 +02:00
Fabien Potencier
61487cb6f7 merged branch schmittjoh/resourceOptimization (PR #2193)
Commits
-------

a1491e8 added some missing accessors/mutators

Discussion
----------

added some missing accessors/mutators
2011-09-16 13:49:30 +02:00
Johannes M. Schmitt
a1491e8b54 added some missing accessors/mutators 2011-09-16 13:43:09 +02:00
Fabien Potencier
83b69e6d8c [Translation] renamed a method 2011-09-16 13:27:17 +02:00
Fabien Potencier
bede42065e [Config] fixed FileResource usage of is_file (we must use file_exists here as the resource can be a file or a directory, reverts #2057) 2011-09-16 13:20:41 +02:00
alexandresalome
132fbe3b47 [WebProfilerBundle] Merge position and css_position 2011-09-16 09:51:17 +02:00
Johannes M. Schmitt
9fb15c7cb2 [Process] workaround a faulty implementation of is_executable on Windows 2011-09-15 19:42:58 +02:00
Fabien Potencier
47e425b12b merged branch Einarsson/2.0 (PR #2190)
Commits
-------

aa8e029 Swedish translation fix.

Discussion
----------

Swedish translation fix.

"valda" translates to "chosen". Changed to correct term "angivna".
2011-09-15 18:26:05 +02:00
Emil Einarsson
aa8e029e65 Swedish translation fix. 2011-09-15 17:36:05 +02:00
Fabien Potencier
6d3d3fec25 merged branch stealth35/fix_stubdate_yy (PR #2186)
Commits
-------

43b55ef [Locale] Fix #2179 StubIntlDateFormatter support yy format

Discussion
----------

[Locale] Fix #2179 StubIntlDateFormatter support yy format

Fix #2179 Year limit is 2031 like IntlDateFormatter
2011-09-15 13:56:24 +02:00
stealth35
43b55efd04 [Locale] Fix #2179 StubIntlDateFormatter support yy format
Fix #2179 Year limit is 2031 like IntlDateFormatter
2011-09-16 13:12:22 +02:00
Marek Kalnik
4ca09a931d [Validator] Validate object with it's own entity manager by default 2011-09-15 11:16:53 +02:00
Fabien Potencier
5526072dba [Translation] added support for more than one fallback locale 2011-09-15 08:19:52 +02:00
Fabien Potencier
3a4d1a6a22 merged 2.0 branch 2011-09-15 07:39:20 +02:00
Fabien Potencier
9ffd8ca99c [Translation] renamed hasStrict() to defines() 2011-09-14 22:49:04 +02:00
Fabien Potencier
79710edb8a [Translation] added a MessageCatalogue::hasStrict() method to check if a string has a translation (but without taking into account the fallback mechanism) 2011-09-14 22:31:14 +02:00
Fabien Potencier
c50a3a194d [Translation] fixed transchoice when used with a fallback 2011-09-14 22:31:09 +02:00
Johannes Schmitt
3abb7f3a69 fixed some conflicts with garbage collection 2011-09-14 22:26:10 +02:00
Johannes Schmitt
a1888b2f01 added a dbal session storage 2011-09-14 22:26:09 +02:00
H. Westphal
365e73aa71 Fixed the find() method and changed the way the profile data is stored. 2011-09-14 22:15:57 +02:00
Fabien Potencier
c985ffaa99 [Translation] fixed message selector when the message is empty (closes #2144) 2011-09-14 22:04:39 +02:00
Fabien Potencier
55eaf4e0f5 merged branch danielholmes/master (PR #2031)
Commits
-------

777f876 [HttpFoundation] Added test that exposes error in session saving

Discussion
----------

[HttpFoundation] Added test that exposes error in session saving

Noticed this commit in the recent release:

https://github.com/symfony/symfony/commit/34a1b53

And noticed that the save in __destruct won't be fired if a manual save has been called. The testSavedOnDestructAfterManualSave test I've added fails on 2.0.1 but it passes with 2.0.0. An example:

$session->set('foo', 'value');
$session->__destruct(); // eventually called during shutdown, triggers a save
// During next request, $session->get('foo') returns 'value'

$session->set('foo', 'value');
$session->save();
$session->set('foo', 'newvalue');
$session->__destruct(); // eventually called during shutdown, however WON'T trigger save
// During next request, $session->get('foo') returns 'value'

In my eyes the save on destruction should still happen whether a save has been called manually or not - it's more predictable. But i can see arguments for the opposite as well.

If consensus is that this is a bug, I'm happy to provide a fix but wanted to get feedback on the 2 options:

 * Save optimisation can be reverted
 * Can make the save optimisation more intelligent so a write to storage is only done if something has changed. The best way to do this would be to close down the api and mark the session as invalid when an attribute is set for example, however all properties are currently protected and would need to be private, so it might break some people's extensions of session

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

by stof at 2011/09/04 02:13:52 -0700

@fabpot what about it ?
2011-09-14 20:55:06 +02:00
Fabien Potencier
27ba003e5e [HttpFoundation] changed the strategy introduced in a5ccda47b4 to fix functional tests and still allow to call save more than once for a Session 2011-09-14 20:54:45 +02:00
Fabien Potencier
28cc53130d merged branch e-butik/session-invalidation-2.0 (PR #2180)
Commits
-------

ff99d80 Changed the behavior of Session::regenerate to destroy the session when it invalidates it.

Discussion
----------

Changed the behavior of Session::regenerate to destroy the old session when invalidates it.

When invalidating a session, I've yet to find a reason for the storage not to destroy the old session.

If the intent of the method is to invalidate the session, there's no reason at all to keep the old session around in storage, since it's supposed to be invalid.

(New PR with changed base from #2176)
2011-09-14 19:57:15 +02:00
Magnus Nordlander
ff99d80a8e Changed the behavior of Session::regenerate to destroy the session when it invalidates it. 2011-09-14 19:52:25 +02:00
Fabien Potencier
532b0b6b59 merged branch jdreesen/trans-fix-1 (PR #2173)
Commits
-------

e98cbc3 fixed typo

Discussion
----------

Fixed typo in the hebrew translation file
2011-09-14 16:48:19 +02:00
Fabien Potencier
8fb1c620a6 merged branch e-butik/sv-validator-translation-2.0 (PR #2178)
Commits
-------

b15d80e Added missing translation for Swedish

Discussion
----------

Added missing translation for Swedish

A missing Swedish translation for "One or more of the given values is invalid" was added.

(New PR with changed base from #2177)
2011-09-14 16:29:31 +02:00
Magnus Nordlander
b15d80edc9 Added missing translation for Swedish 2011-09-14 16:24:18 +02:00
jdreesen
e98cbc3077 fixed typo 2011-09-14 11:59:16 +02:00
Fabien Potencier
c697b8fc1c merged branch aboks/classloader_test (PR #2154)
Commits
-------

a7b5c1c [Classloader] Fixed failing test on Windows

Discussion
----------

[Classloader] Fixed failing test on Windows
2011-09-14 10:45:09 +02:00
Fabien Potencier
c5e0c80a76 [HttpFoundation] made FileBinaryMimeTypeGuesser command configurable 2011-09-14 09:45:15 +02:00
Fabien Potencier
f9ecdfeb05 [FrameworkBundle] added sc parameters replacement in route requirements 2011-09-14 09:19:55 +02:00
Fabien Potencier
b5783dffe1 updated CHANGELOG for 2.1 2011-09-14 09:06:29 +02:00
Fabien Potencier
fabec37edc [FrameworkBundle] added tests for DIC parameters replacements in route defaults 2011-09-14 09:06:00 +02:00
Fabien Potencier
400159de4f [FrameworkBundle] made DIC placeholders replacement in route defaults only when the parameter exists in the container 2011-09-14 08:49:02 +02:00
Fabien Potencier
53b4cd8c9c [FrameworkBundle] made code more robust 2011-09-14 08:48:23 +02:00
Fabien Potencier
92d35c81c0 [FrameworkBundle] fixed CS and phpdoc 2011-09-14 08:47:38 +02:00
Fabien Potencier
8faf27864d merged branch mvrhov/route_dic_params (PR #1934)
Commits
-------

13b77bf Treat defaults enclosed between % as parameters from dic This allows as to define default like this

Discussion
----------

[Route] Treat defaults enclosed between % as parameters from dic

This allows as to define default like this

foo:
    pattern:  /{_locale}/login
    defaults:
        _controller: my_login_controller:loginAction
        _locale: %session.default_locale%

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

by lsmith77 at 2011/08/10 07:00:14 -0700

this is a bit of a BC break .. but in general it does address a huge need for being able to make routes more easily configurable.

also didnt check this, but we should make sure that this doesnt open any security issues.

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

by maoueh at 2011/08/10 08:31:18 -0700

Hi,

There is an issue pending for the same feature here #1718. Maybe this one could be linked to #1718 somehow.

Regards,
Matt

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

by fabpot at 2011/09/12 23:51:53 -0700

@lsmith77: Why is it a BC break?

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

by lsmith77 at 2011/09/13 00:04:46 -0700

well its only a BC break on the off chance that someone puts stuff enclosed in % in the defaults atm and does not expect them to be interpreted as parameters. not very likely. but at the least we might want to first check if the parameter exists before replacing it.

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

by mvrhov at 2011/09/13 23:28:48 -0700

So, do I check if parameter exists inside dic and throw a notice if not, or do I just fix the comment?
2011-09-14 08:42:27 +02:00