Commit Graph

6966 Commits

Author SHA1 Message Date
stloyd
67c33a8e02 Rebased with master, and fixed wrong behavior with proper tests coverage 2011-09-24 10:44:47 +02:00
stloyd
f8a6a4b1e5 Be sure that both fields have same value for required option in RepeatedType 2011-09-24 10:25:07 +02:00
stloyd
0679220b45 Additional test coverage for changes in RepeatedType 2011-09-24 10:25:06 +02:00
Helmer Aaviksoo
b23d47d274 moved options test form from class->method scope 2011-09-24 10:25:06 +02:00
Helmer Aaviksoo
5fe5556bea fixed accidental permission change 2011-09-24 10:25:06 +02:00
Helmer Aaviksoo
a96943482b [Form] fixed CS, merged options, added tests 2011-09-24 10:25:05 +02:00
helmer
8819db3923 [Form] Allow setting different options to repeating fields 2011-09-24 10:25:05 +02:00
Fabien Potencier
85ba3d0274 merged 2.0 2011-09-23 21:10:42 +02:00
Fabien Potencier
4983f0a18e merged branch weaverryan/2.0_readme_contributing (PR #2251)
Commits
-------

c0494c4 [README] Adding a small section with information about contributing.

Discussion
----------

[WIP] Contributing addition to the README

Hey guys-

This adds a small section to the README about contributing. It's a WIP only because we need to wait for [this](0892a2cf5c) commit to be rendered so that the following link works (and takes you down to the new section):

http://symfony.com/doc/current/contributing/code/patches.html#check-list

Thanks!
2011-09-23 21:09:44 +02:00
Fabien Potencier
902bbf2ba0 merged branch lsmith77/template_locator (PR #2128)
Commits
-------

afc0971 make it easier to customize the cache lookup in the TemplateLocator

Discussion
----------

make it easier to customize the cache lookup in the TemplateLocator

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

by fabpot at 2011/09/22 01:21:56 -0700

Do you any use case for that?

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

by lsmith77 at 2011/09/22 01:27:06 -0700

Yes in the ThemeBundle we override the default cache to include the key + theme:
https://github.com/liip/liipthemebundle/pull/9/files#L7R53

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

by lsmith77 at 2011/09/22 01:29:18 -0700

though i just thought about it .. if we do not put this into 2.0, it might not be worth the trouble.

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

by pjedrzejewski at 2011/09/22 02:19:42 -0700

+1 for this.
2011-09-23 21:00:46 +02:00
Fabien Potencier
e2945c9f9b [Routing] fixed Apache matcher dumper (broken by previous merge) 2011-09-23 20:56:36 +02:00
Fabien Potencier
d830253876 [Routing] fixed unit tests broken by previous merge 2011-09-23 20:56:18 +02:00
Fabien Potencier
67f182e3e2 merged branch geezmo/2.0 (PR #2249)
Commits
-------

ae3aded Added PCRE_DOTALL modifier to RouteCompiler to allow urlencoded linefeed in route parameters.

Discussion
----------

Added PCRE_DOTALL modifier to RouteCompiler to allow urlencoded linefeed in route parameters.

Reopened from PR 2220 on master branch.

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

by Seldaek at 2011/09/23 07:59:58 -0700

👍 :)
2011-09-23 20:49:59 +02:00
Ryan Weaver
c0494c4c5b [README] Adding a small section with information about contributing. 2011-09-23 11:21:11 -05:00
Alberto Pirovano
ae3aded83f Added PCRE_DOTALL modifier to RouteCompiler to allow urlencoded linefeed in route parameters. 2011-09-23 16:53:06 +02:00
Fabien Potencier
b8e5a155e4 [DepedencyInjection] fixed unit tests 2011-09-23 11:59:37 +02:00
Fabien Potencier
e0ace8eaee [DependencyInjection] fixed array support for the ini loader 2011-09-23 11:45:30 +02:00
Fabien Potencier
ee12b67e4e [TwigBridge] rewrote the Twig translation extractor
* The extractor is now reusable as this is a proper Twig node visitor
* The new extractor covers more cases
2011-09-23 09:38:20 +02:00
Fabien Potencier
b6c8f639f0 [TwigBridge] fixed message keys extraction when no domain is defined in the template 2011-09-23 08:39:02 +02:00
Fabien Potencier
645bd8215e [DomCrawler] added unit tests for previous merge 2011-09-23 08:10:01 +02:00
Fabien Potencier
69468cb9bc merged branch jc-/master (PR #2151)
Commits
-------

f4784f7 [DomCrawler] Submit on a <form> node

Discussion
----------

DomCrawler - ability to submit a form that doesn't have any buttons

The proposed modification allows to submit above a &lt;form&gt; tag.
Using the DomCrawler component (among others), I have to interact with a remote site that has a form without a submit button (submitted automatically by javascript). This prompted the quick fix I'm sending. Please tell me if there is anything I should do differently and I'll modify it.
Thanks :)

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

by fabpot at 2011/09/12 00:46:07 -0700

Looks good to me. Can you add some unit tests for this new behavior? Thanks.

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

by jc- at 2011/09/12 02:27:25 -0700

Honored to meet you. I'm trying to run the test suite but 24 tests fail even without my commit. I'll try to get it sorted out and submit tests for this ASAP.
2011-09-23 08:05:44 +02:00
Fabien Potencier
98abc8ed05 [DependencyInjection] changed the default YAML indentation to 4 spaces instead of 2 2011-09-23 08:05:09 +02:00
Fabien Potencier
e5294fee12 fixed unit tests broken by previous merge 2011-09-23 07:59:44 +02:00
Fabien Potencier
1dde2745d2 merged branch jdewit/master (PR #2242)
Commits
-------

6d8c4a8 change nested collection indentation from 2 to 4

Discussion
----------

Changed Yaml Dumper nested collection indentation

This PR changes the dumpers nested collection indentation from 2 to 4 which seems to be the standard.
2011-09-23 07:45:39 +02:00
Fabien Potencier
ddb94c47c3 merged branch excelwebzone/hebrew_translations (PR #2243)
Commits
-------

58d78f0  Updated the hebrew translations

Discussion
----------

Updated the hebrew translations
2011-09-23 07:45:29 +02:00
excelwebzone
58d78f09c6 Updated the hebrew translations 2011-09-22 17:09:12 -07:00
Joris de Wit
6d8c4a82f3 change nested collection indentation from 2 to 4 2011-09-22 14:48:21 -07:00
Fabien Potencier
798cf5272b merged branch helmer/target_path (PR #2228)
Commits
-------

022a9a7 [Security] Make saving target_path extendible

Discussion
----------

[Security] Make saving target_path extendible

The problem lies in how Security component handles ``target_path`` - the latest request URI is always stored. This can lead to problems in following scenarios:
a) The response type of the request is not HTML (think JSON, XML ..)
b) The URI matches a route that does not listen to HTTP GET

I opened a [PR](https://github.com/symfony/symfony/pull/604) months ago, to partly solve scenario A, which did not make it. Now I am proposing a different solution - user can extend ``ExceptionListener`` and override the logic behind setting the ``target_path`` to match his precise needs.

In my simplified scenario, I would be using:

```
protected function setTargetPath(Request $request)
{
    if ($request->isXmlHttpRequest() || 'GET' !== $request->getMethod()) {
        return;
    }

    $request->getSession()->set('_security.target_path', $request->getUri());
}
```

@Seldaek, @schmittjoh, @lsmith77, thoughts?

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

by Seldaek at 2011/09/21 02:37:02 -0700

Seems like a better solution for flexibility's sake. Would be quite awesome if you could add a cookbook entry to symfony/symfony-docs about this, otherwise I'm afraid we'll have to explain it over and over again :)

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

by helmer at 2011/09/21 03:38:57 -0700

[Cookbook](b22c5e666e) entry done. Perhaps though I rushed ahead ..

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

by Seldaek at 2011/09/21 03:52:01 -0700

Thanks. You can already do a pull request against symfony-docs, just reference this pull request in it so it's not merged before this is merged.
2011-09-22 18:43:18 +02:00
Fabien Potencier
f611b3ee18 updated CHANGELOG for 2.1 2011-09-22 09:44:58 +02:00
Fabien Potencier
50570ba819 merged branch yethee/ru_translation (PR #2238)
Commits
-------

e1aabd2 [FrameworkBundle] Updated the Russian translations.

Discussion
----------

[FrameworkBundle] Updated the Russian translations.

Added translations for a new error messages of image validator.
Added translations for the user password validator.
2011-09-22 09:36:04 +02:00
Fabien Potencier
2838ff9324 merged branch stloyd/patch-1 (PR #2237)
Commits
-------

4dae5b8 [WebProfilerBundle] Cleanuped css

Discussion
----------

[WebProfilerBundle] Cleanuped css
2011-09-22 09:35:42 +02:00
Deni
e1aabd24e4 [FrameworkBundle] Updated the Russian translations.
Added translations for a new error messages of image validator.
Added translations for the user password validator.
2011-09-22 11:33:20 +04:00
Fabien Potencier
e5a23dbdaa [ClassLoader] added support for PHP 5.4 traits 2011-09-22 09:31:50 +02:00
Joseph Bielawski
4dae5b8fca [WebProfilerBundle] Cleanuped css 2011-09-22 10:19:19 +03:00
Fabien Potencier
a0d0124639 [WebProfilerBundle] tweaked profiler CSS 2011-09-22 09:11:17 +02:00
Fabien Potencier
c9ddd6fd8b [WebProfilerBundle] moved the token not found error to the new info page 2011-09-22 09:05:42 +02:00
Fabien Potencier
e98584e2f3 [WebProfilerBundle] tweaked some templates 2011-09-22 09:01:35 +02:00
Fabien Potencier
0547059250 merged branch stloyd/profile_info (PR #1594)
Commits
-------

fea74db Added information page with better messages for Profiler

Discussion
----------

[WebProfiler] Added information page with better messages

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

by stloyd at 2011/08/30 23:29:27 -0700

@fabpot Any decision about this ?
2011-09-22 08:59:08 +02:00
Fabien Potencier
db3a2f2359 [WebProfileBundle] fixed unit tests 2011-09-22 08:30:34 +02:00
Fabien Potencier
8b511c0682 updated CHANGELOG for 2.1 2011-09-22 08:28:07 +02:00
Fabien Potencier
2b27c38e7f [WebProfilerBundle] fixed height of the toolbar 2011-09-22 08:28:02 +02:00
Fabien Potencier
56b6d537d6 [WebProfilerBundle] removed normal as a valid position for the toolbar as it is only to be used by the profiler 2011-09-22 08:27:40 +02:00
Fabien Potencier
3e90ba4f76 [WebProfileBundle] added missing position attribute in XSD 2011-09-22 08:27:09 +02:00
Fabien Potencier
916e4b1363 merged branch alexandresalome/profiler-toolbar-position (PR #2114)
Commits
-------

132fbe3 [WebProfilerBundle] Merge position and css_position
defdb82 [WebProfilerBundle] Remove unused line
69a50ab [WebProfilerBundle] Add the posibility to specify position of toolbar

Discussion
----------

[WebProfilerBundle] Add the posibility to specify position of toolbar

I'm facing a project where everything is at the bottom of the page, positioned with CSS.

This PR adds the possibility to specify the position of the toolbar, with configuration :

    web_profiler:
        toolbar: true
        intercept_redirects: false
        css_position:        top

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

by stof at 2011/09/06 12:11:27 -0700

Looking at the code rendering the toolbar, there is already a ``position`` parameter used to display the toolbar on top in the profiler. Maybe we could look into reusing it instead of having a second one named ``css_position``.
But the phpdoc says ``bottom, normal, or null -- automatically guessed``. Using ``bottom`` will result in ``position: bottom`` in the CSS, which is broken. @fabpot is it simply a left-over of a previous version ?

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

by alexandresalome at 2011/09/16 00:56:11 -0700

I merged parameters and changed the documentation for 3 values : ```bottom, top or normal```.
2011-09-22 08:14:15 +02:00
Fabien Potencier
e503bc4e1b updated CHANGELOG for 2.1 2011-09-22 08:04:24 +02:00
Fabien Potencier
30de28e50d merged branch marekkalnik/multiple_entity_managers (PR #2184)
Commits
-------

4ca09a9 [Validator] Validate object with it's own entity manager by default

Discussion
----------

[Validator] Validate object with it's own entity manager by default

While working with multiple object managers the default validation uses default entity manager, requiring the dev to create own validation services for each entity using other entity managers. This commit causes entity to be validated (by default) by it's own entity manager, while still preserving a possiblity to specifiy $constraint->em.

This is was a pull request to 2.0, changed to master according to stof's suggestion.
2011-09-22 08:02:54 +02:00
Fabien Potencier
363057b181 merged branch stealth35/ini_bool (PR #2235)
Commits
-------

11c4412 [DependencyInjection] fix 2219 IniFileLoader accept Boolean

Discussion
----------

[DependencyInjection] fix #2219 IniFileLoader accept Boolean

fix #2219
accept : `true`, `false`, `null` like YAML
2011-09-21 22:17:58 +02:00
stealth35
11c441289a [DependencyInjection] fix 2219 IniFileLoader accept Boolean 2011-09-21 22:14:12 +02:00
Fabien Potencier
e473ea109e merged branch symfony/security_user_validator (PR #2232)
Commits
-------

7d3c2df [SecurityBundle] added a validator for the user password

Discussion
----------

[SecurityBundle] added a validator for the user password

This validator is useful when you want to validate that an input value
is equal to the user current password (in a form where the user can change
his password for instance).

Note that this should not be used to validate a login form as this is
done automatically by the built-in security mechanism.

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

by Palleas at 2011/09/21 08:36:14 -0700

This is kinda what I wrote for my project 2 days ago, I'm definitely +1 on this ;-)

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

by stealth35 at 2011/09/21 08:45:55 -0700

👍
2011-09-21 20:22:09 +02:00
Fabien Potencier
9683d3c421 merged branch alifity/image_validator_id_trans (PR #2230)
Commits
-------

e13998d updated indonesian translation for image validator

Discussion
----------

Updated indonesian translation for image validator

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

by stof at 2011/09/21 10:49:48 -0700

Can you send a PR to the 2.0 branch for the trans-unit 41 ?

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

by alifity at 2011/09/21 11:05:48 -0700

Hi @stof, I've sent another PR for trans-unit-41 :)
2011-09-21 20:15:39 +02:00